public class ActionInvocationFacetViaMethod extends ActionInvocationFacetAbstract implements ImperativeFacet
| Modifier and Type | Class and Description |
|---|---|
static class |
ActionInvocationFacetViaMethod.InvocationResult
Introduced to disambiguate the meaning of null as a return value of
invoke(ObjectAdapter, ObjectAdapter[]) |
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingImperativeFacet.Flags, ImperativeFacet.Intent, ImperativeFacet.UtilActionInvocationFacet.CurrentInvocationFILTERcurrentInvocation| Constructor and Description |
|---|
ActionInvocationFacetViaMethod(Method method,
ObjectSpecification onType,
ObjectSpecification returnType,
FacetHolder holder,
RuntimeContext runtimeContext,
AdapterManager adapterManager,
ServicesInjector servicesInjector) |
| Modifier and Type | Method and Description |
|---|---|
ImperativeFacet.Intent |
getIntent(Method method)
The intent of this method, so that the
WrapperFactory knows whether to delegate on or to reject. |
List<Method> |
getMethods()
Returns a singleton list of the
Method provided in the
constructor. |
ObjectSpecification |
getOnType() |
ObjectSpecification |
getReturnType() |
boolean |
impliesObjectChanged()
Whether invoking this method requires an
DomainObjectContainer.objectChanged(Object) to occur afterwards. |
boolean |
impliesResolve()
Whether invoking this requires a
DomainObjectContainer.resolve(Object) to occur first. |
protected ActionInvocationFacetViaMethod.InvocationResult |
internalInvoke(ObjectAction owningAction,
ObjectAdapter targetAdapter,
ObjectAdapter[] arguments) |
ObjectAdapter |
invoke(ObjectAction owningAction,
ObjectAdapter targetAdapter,
ObjectAdapter[] arguments) |
ObjectAdapter |
invoke(ObjectAdapter target,
ObjectAdapter[] parameters) |
protected String |
toStringValues() |
typealwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic ActionInvocationFacetViaMethod(Method method, ObjectSpecification onType, ObjectSpecification returnType, FacetHolder holder, RuntimeContext runtimeContext, AdapterManager adapterManager, ServicesInjector servicesInjector)
public List<Method> getMethods()
Method provided in the
constructor.getMethods in interface ImperativeFacetpublic ImperativeFacet.Intent getIntent(Method method)
ImperativeFacetWrapperFactory knows whether to delegate on or to reject.getIntent in interface ImperativeFacetmethod - - one of the methods returned from ImperativeFacet.getMethods()public ObjectSpecification getReturnType()
getReturnType in interface ActionInvocationFacetpublic ObjectSpecification getOnType()
getOnType in interface ActionInvocationFacetpublic ObjectAdapter invoke(ObjectAdapter target, ObjectAdapter[] parameters)
invoke in interface ActionInvocationFacetpublic ObjectAdapter invoke(ObjectAction owningAction, ObjectAdapter targetAdapter, ObjectAdapter[] arguments)
invoke in interface ActionInvocationFacetprotected ActionInvocationFacetViaMethod.InvocationResult internalInvoke(ObjectAction owningAction, ObjectAdapter targetAdapter, ObjectAdapter[] arguments)
public boolean impliesResolve()
ImperativeFacetDomainObjectContainer.resolve(Object) to occur first.impliesResolve in interface ImperativeFacetpublic boolean impliesObjectChanged()
ImperativeFacetDomainObjectContainer.objectChanged(Object) to occur afterwards.impliesObjectChanged in interface ImperativeFacetprotected String toStringValues()
toStringValues in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.