public class RemovingCallbackFacetViaMethod extends RemovingCallbackFacetAbstract implements ImperativeFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingImperativeFacet.Flags, ImperativeFacet.Intent, ImperativeFacet.UtilFILTER| Constructor and Description |
|---|
RemovingCallbackFacetViaMethod(Method method,
FacetHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(Method method)
Associate an additional method, to be returned from
ImperativeFacet.getMethods(). |
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()
|
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. |
void |
invoke(ObjectAdapter adapter) |
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 RemovingCallbackFacetViaMethod(Method method, FacetHolder holder)
public void addMethod(Method method)
ImperativeFacetMultiImperativeFacet.getMethods().addMethod in interface ImperativeFacetMultipublic boolean impliesResolve()
ImperativeFacetDomainObjectContainer.resolve(Object) to occur first.impliesResolve 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 boolean impliesObjectChanged()
ImperativeFacetDomainObjectContainer.objectChanged(Object) to occur afterwards.impliesObjectChanged in interface ImperativeFacetpublic List<Method> getMethods()
ImperativeFacetMethods invoked by this Facet.
In the vast majority of cases there is only a single Method (eg
wrapping a property's getter). However, some Facets, such as
those for callbacks, could map to multiple Methods.
Implementations that will return multiple Methods should
implement the ImperativeFacetMulti sub-interface that provides
the ability to add
Methods as part of the interface API. For example:
if (someFacet instanceof ImperativeFacetMulti) {
ImperativeFacetMulti ifm = (ImperativeFacetMulti)someFacet;
ifm.addMethod(...);
}
getMethods in interface ImperativeFacetpublic void invoke(ObjectAdapter adapter)
invoke in interface CallbackFacetinvoke in class CallbackFacetAbstractprotected String toStringValues()
toStringValues in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.