|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jacob.com.InvocationProxy
public abstract class InvocationProxy
The void returning signature is the standard legacy signature. The Variant returning signature was added in 1.10 to support event handlers returning values.
| Field Summary | |
|---|---|
protected Object |
mTargetObject
the object we will try and forward to. |
| Constructor Summary | |
|---|---|
protected |
InvocationProxy()
dummy constructor for subclasses that don't actually wrap anything and just want to override the invoke() method |
| Method Summary | |
|---|---|
Variant |
getVariant()
used by EventProxy.cpp to create variant objects in the right thread |
abstract Variant |
invoke(String methodName,
Variant[] targetParameters)
The method actually invoked by EventProxy.cpp. |
void |
setTarget(Object pTargetObject)
Sets the target for this InvocationProxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object mTargetObject
| Constructor Detail |
|---|
protected InvocationProxy()
| Method Detail |
|---|
public abstract Variant invoke(String methodName,
Variant[] targetParameters)
Subclasses that override this should make sure mTargetObject is not null before processing.
methodName - name of method in mTargetObject we will invoketargetParameters - Variant[] that is the single parameter to the method
public Variant getVariant()
public void setTarget(Object pTargetObject)
pTargetObject -
IllegalArgumentException - if target is not publicly accessible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||