public abstract class InvocationProxy
extends java.lang.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 java.lang.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(java.lang.String methodName,
Variant[] targetParameters)
The method actually invoked by EventProxy.cpp.
|
void |
setTarget(java.lang.Object pTargetObject)
Sets the target for this InvocationProxy.
|
protected java.lang.Object mTargetObject
protected InvocationProxy()
public abstract Variant invoke(java.lang.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(java.lang.Object pTargetObject)
pTargetObject
- java.lang.IllegalArgumentException
- if target is not publicly accessiblehttp://jacob-project.sourceforge.net