public abstract class InvocationProxy extends Object
The void returning signature is the standard legacy signature. The Variant returning signature was added in 1.10 to support event handlers returning values.
| Modifier and Type | Field and Description |
|---|---|
protected Object |
mTargetObject
the object we will try and forward to.
|
| Modifier | Constructor and Description |
|---|---|
protected |
InvocationProxy()
dummy constructor for subclasses that don't actually wrap anything and
just want to override the invoke() method
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Object mTargetObject
protected InvocationProxy()
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 methodpublic Variant getVariant()
public void setTarget(Object pTargetObject)
pTargetObject - IllegalArgumentException - if target is not publicly accessiblehttp://jacob-project.sourceforge.net