public class BasicInvocationDelegate extends java.lang.Object implements EOperation.Internal.InvocationDelegate
UnsupportedOperationException on every invocation, except for
the operations defined for the EObject class.
Subclasses should override the dynamicInvoke(InternalEObject, EList)
method to not do that.EOperation.Internal.InvocationDelegate.Factory| Modifier and Type | Field and Description |
|---|---|
protected EOperation |
eOperation |
| Constructor and Description |
|---|
BasicInvocationDelegate(EOperation operation)
Initializes me with the operation that delegates to me.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
dynamicInvoke(InternalEObject target,
EList<?> arguments)
Invokes the operation behaviour for the specified target
object.
|
protected EOperation eOperation
public BasicInvocationDelegate(EOperation operation)
operation - my operationpublic java.lang.Object dynamicInvoke(InternalEObject target, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
EOperation.Internal.InvocationDelegatedynamicInvoke in interface EOperation.Internal.InvocationDelegatetarget - the object on which to invoke the operationarguments - the arguments for the operation parameters (an
empty list if the operation has no parameters)null if it is
a void operationjava.lang.reflect.InvocationTargetException - in case of failure to execute the
operation behaviour, usually because of an exception