|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IDelegator
Description: Interface describing operation available on individual delegators. Its operations are identical to the original pre and post interception of OpenCOM. Note: I have not implemented hooking as I do not believe it offers anything beneficial. However, if anyone wants to add it - it would be relatively straightforward, just follow the same dynamic proxy approach.
| Method Summary | |
|---|---|
boolean |
addPostMethod(java.lang.Object methodHost,
java.lang.String methodName)
Inserts a post-method on this delegator. |
boolean |
addPreMethod(java.lang.Object methodHost,
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. |
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. |
| Method Detail |
|---|
boolean addPreMethod(java.lang.Object methodHost,
java.lang.String methodName)
methodHost - A Java object containing the pre-method to insert.methodName - A String describing the name of the pre-method.
boolean delPreMethod(java.lang.String methodName)
methodName - A String describing the name of the pre-method.
boolean addPostMethod(java.lang.Object methodHost,
java.lang.String methodName)
methodHost - A Java object containing the pre-method to insert.methodName - A String describing the name of the pre-method.
boolean delPostMethod(java.lang.String methodName)
methodName - A String describing the name of the pre-method.
long viewPreMethods(java.lang.String[] methodNames)
methodNames - A String array to be filled with the names of pre-methods.
long viewPostMethods(java.lang.String[] methodNames)
methodNames - A String array to be filled with the names of post-methods.
boolean SetAttributeValue(java.lang.String Name,
java.lang.String Type,
java.lang.Object Value)
Name - A string describing the meta-data attribute.Name - A string describing the meta-data type.Value - An Object holding the value of the attribute.
TypedAttribute GetAttributeValue(java.lang.String Name)
Name - A string describing the meta-data attribute.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||