|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectOpenCOM.Delegator
public class Delegator
Class of individual delegator objects that are attached to each interface for the purpose of pre and post method interception. Note: The implementation mimics OpenCOM's dummy QI redirection using Java dynamic proxies instead.
IDelegator,
InvocationHandler| Field Summary | |
|---|---|
java.lang.Object |
HigherObject
The Outer Proxy of this delegator |
java.lang.Object |
obj
The original Component that we are delegating from |
static java.lang.Object |
ThisObject
Static reference to this delegator |
| Constructor Summary | |
|---|---|
Delegator(java.lang.Object obj,
IMetaInterception pIOCM)
|
|
| Method Summary | |
|---|---|
boolean |
addPostMethod(java.lang.Object interceptorObject,
java.lang.String methodName)
Inserts a post-method on this delegator. |
boolean |
addPreMethod(java.lang.Object Interceptorobject,
java.lang.String methodName)
Inserts a pre-method on this delegator. |
boolean |
delPostMethod(java.lang.String methodName)
Deletes a specified post-method from this delegator. |
boolean |
delPreMethod(java.lang.String methodName)
Deletes a specified pre-method from this delegator. |
TypedAttribute |
GetAttributeValue(java.lang.String Name)
This method retrieves the value of a name-value pair. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
invoke is called on this dynamic proxy whenever a method of the "inner" component is invoked. |
static java.lang.Object |
newInstance(java.lang.Object obj)
The dynamic proxy creation operation - takes the original component and wraps the dynamic invocation handler around it. |
boolean |
SetAttributeValue(java.lang.String Name,
java.lang.String Type,
java.lang.Object Value)
For simplicity this version of OpenCOM attaches interface meta-data to the delagator. |
long |
viewPostMethods(java.lang.String[] methodNames)
A Meta-Inspection operation. |
long |
viewPreMethods(java.lang.String[] methodNames)
A Meta-Inspection operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object obj
public static java.lang.Object ThisObject
public java.lang.Object HigherObject
| Constructor Detail |
|---|
public Delegator(java.lang.Object obj,
IMetaInterception pIOCM)
| Method Detail |
|---|
public static java.lang.Object newInstance(java.lang.Object obj)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - the proxy component.m - The method to be invoked.args - An object array with all the arguments of the original invocation.
java.lang.Throwable
public boolean addPreMethod(java.lang.Object Interceptorobject,
java.lang.String methodName)
IDelegator
addPreMethod in interface IDelegatorInterceptorobject - A Java object containing the pre-method to insert.methodName - A String describing the name of the pre-method.
public boolean addPostMethod(java.lang.Object interceptorObject,
java.lang.String methodName)
IDelegator
addPostMethod in interface IDelegatorinterceptorObject - A Java object containing the pre-method to insert.methodName - A String describing the name of the pre-method.
public boolean delPostMethod(java.lang.String methodName)
IDelegator
delPostMethod in interface IDelegatormethodName - A String describing the name of the pre-method.
public boolean delPreMethod(java.lang.String methodName)
IDelegator
delPreMethod in interface IDelegatormethodName - A String describing the name of the pre-method.
public long viewPostMethods(java.lang.String[] methodNames)
IDelegator
viewPostMethods in interface IDelegatormethodNames - A String array to be filled with the names of post-methods.
public long viewPreMethods(java.lang.String[] methodNames)
IDelegator
viewPreMethods in interface IDelegatormethodNames - A String array to be filled with the names of pre-methods.
public boolean SetAttributeValue(java.lang.String Name,
java.lang.String Type,
java.lang.Object Value)
IDelegator
SetAttributeValue in interface IDelegatorName - A string describing the meta-data attribute.Value - An Object holding the value of the attribute.
public TypedAttribute GetAttributeValue(java.lang.String Name)
IDelegator
GetAttributeValue in interface IDelegatorName - A string describing the meta-data attribute.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||