org.nuiton.topia.service.clients
Class RMIProxy

java.lang.Object
  extended by org.nuiton.topia.service.clients.RMIProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, TopiaApplicationService, TopiaProxy

public class RMIProxy
extends java.lang.Object
implements TopiaProxy

RMIProxy.java

Version:
$Revision: 1715 $ Last update : $Date: 2009-12-15 01:26:16 +0100 (mar., 15 déc. 2009) $ By : $Author: tchemit $
Author:
chatellier

Field Summary
protected  java.lang.Class<? extends TopiaApplicationService> clazz
          La classe geree par le proxy
protected  java.lang.String serviceLocation
          location du service
 
Fields inherited from interface org.nuiton.topia.service.TopiaApplicationService
log
 
Constructor Summary
RMIProxy()
          Constructeur
 
Method Summary
 void destroy()
          Detruit le service
 void init(TopiaContext context)
          Initialise le service
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void setClass(java.lang.Class<? extends TopiaApplicationService> clazz)
          Renseigne la classe geree
 void setURI(java.net.URI uri)
          Rensigne l'URI du service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceLocation

protected java.lang.String serviceLocation
location du service


clazz

protected java.lang.Class<? extends TopiaApplicationService> clazz
La classe geree par le proxy

Constructor Detail

RMIProxy

public RMIProxy()
Constructeur

Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

setURI

public void setURI(java.net.URI uri)
Description copied from interface: TopiaProxy
Rensigne l'URI du service

Specified by:
setURI in interface TopiaProxy
Parameters:
uri - l'URI
See Also:
URI

setClass

public void setClass(java.lang.Class<? extends TopiaApplicationService> clazz)
Description copied from interface: TopiaProxy
Renseigne la classe geree

Specified by:
setClass in interface TopiaProxy
Parameters:
clazz - la class

destroy

public void destroy()
Description copied from interface: TopiaApplicationService
Detruit le service

Specified by:
destroy in interface TopiaApplicationService

init

public void init(TopiaContext context)
Description copied from interface: TopiaApplicationService
Initialise le service

Specified by:
init in interface TopiaApplicationService


Copyright © 2004-2010 CodeLutin. All Rights Reserved.