org.nakedobjects.metamodel.facets.actions.invoke
Class ActionInvocationFacetViaMethod
java.lang.Object
org.nakedobjects.metamodel.facets.FacetAbstract
org.nakedobjects.metamodel.facets.actions.invoke.ActionInvocationFacetAbstract
org.nakedobjects.metamodel.facets.actions.invoke.ActionInvocationFacetViaMethod
- All Implemented Interfaces:
- ActionInvocationFacet, Facet, ImperativeFacet
public class ActionInvocationFacetViaMethod
- extends ActionInvocationFacetAbstract
- implements ImperativeFacet
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract |
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, unwrapObject, unwrapString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionInvocationFacetViaMethod
public ActionInvocationFacetViaMethod(java.lang.reflect.Method method,
NakedObjectSpecification onType,
NakedObjectSpecification returnType,
FacetHolder holder,
RuntimeContext runtimeContext)
getMethods
public java.util.List<java.lang.reflect.Method> getMethods()
- Returns a singleton list of the
Method provided in the constructor.
- Specified by:
getMethods in interface ImperativeFacet
getReturnType
public NakedObjectSpecification getReturnType()
- Specified by:
getReturnType in interface ActionInvocationFacet
getOnType
public NakedObjectSpecification getOnType()
- Specified by:
getOnType in interface ActionInvocationFacet
invoke
public NakedObject invoke(NakedObject inObject,
NakedObject[] parameters)
- Specified by:
invoke in interface ActionInvocationFacet
impliesResolve
public boolean impliesResolve()
- Description copied from interface:
ImperativeFacet
- Whether invoking this requires a
DomainObjectContainer.resolve(Object) to occur first.
- Specified by:
impliesResolve in interface ImperativeFacet
impliesObjectChanged
public boolean impliesObjectChanged()
- Description copied from interface:
ImperativeFacet
- Whether invoking this method requires an
DomainObjectContainer.objectChanged(Object)
to occur afterwards.
- Specified by:
impliesObjectChanged in interface ImperativeFacet
- Returns:
toStringValues
protected java.lang.String toStringValues()
- Overrides:
toStringValues in class FacetAbstract
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.