|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.rpc.AbsInvocationHandler
public abstract class AbsInvocationHandler
Abstract class used by remote or local invocation handler.
Field Summary | |
---|---|
private java.lang.Long |
beanId
Bean id. |
private java.lang.String |
containerId
Container id. |
private java.lang.String |
factoryName
Factory name. |
private java.util.Map<java.lang.reflect.Method,java.lang.Long> |
hashedMethods
Map between method and its hash. |
Constructor Summary | |
---|---|
AbsInvocationHandler(java.lang.String containerId,
java.lang.String factoryName)
Build a new Invocation handler. |
Method Summary | |
---|---|
protected java.lang.Long |
getBeanId()
Gets the bean id. |
protected java.lang.String |
getContainerId()
|
protected java.lang.String |
getFactoryName()
|
protected java.util.Map<java.lang.reflect.Method,java.lang.Long> |
getHashedMethods()
|
protected java.lang.Object |
handleObjectMethods(java.lang.reflect.Method method,
java.lang.Object[] args)
Manages all methods of java.lang.Object class. |
protected void |
setBeanId(java.lang.Long beanId)
Sets the id of the bean. |
protected void |
setContainerId(java.lang.String containerId)
Sets the container ID. |
protected void |
setFactoryName(java.lang.String factoryName)
Sets the factory's name. |
protected void |
setHashedMethods(java.util.Map<java.lang.reflect.Method,java.lang.Long> hashedMethods)
Sets the hashed methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.reflect.InvocationHandler |
---|
invoke |
Field Detail |
---|
private java.lang.String containerId
private java.lang.String factoryName
private java.lang.Long beanId
private transient java.util.Map<java.lang.reflect.Method,java.lang.Long> hashedMethods
Constructor Detail |
---|
public AbsInvocationHandler(java.lang.String containerId, java.lang.String factoryName)
containerId
- the id of the container that will be called on the
remote side.factoryName
- the name of the remote factory.Method Detail |
---|
protected java.lang.Object handleObjectMethods(java.lang.reflect.Method method, java.lang.Object[] args)
method
- the Method
instance corresponding to the
interface method invoked on the proxy instance. The declaring
class of the Method
object will be the interface
that the method was declared in, which may be a superinterface of
the proxy interface that the proxy class inherits the method
through.args
- an array of objects containing the values of the arguments
passed in the method invocation on the proxy instance
protected void setBeanId(java.lang.Long beanId)
beanId
- the new ID.protected void setHashedMethods(java.util.Map<java.lang.reflect.Method,java.lang.Long> hashedMethods)
hashedMethods
- the hash for each method.protected java.lang.Long getBeanId()
protected java.lang.String getContainerId()
protected java.lang.String getFactoryName()
protected java.util.Map<java.lang.reflect.Method,java.lang.Long> getHashedMethods()
protected void setContainerId(java.lang.String containerId)
containerId
- the identifier of the container.protected void setFactoryName(java.lang.String factoryName)
factoryName
- the name of the factory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |