public class DisabledObjectFacetViaDisabledMethod extends DisabledObjectFacetAbstract implements ImperativeFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingImperativeFacet.Flags, ImperativeFacet.Intent, ImperativeFacet.UtilFILTERNOOP| Constructor and Description |
|---|
DisabledObjectFacetViaDisabledMethod(Method method,
FacetHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyOnto(FacetHolder holder)
Clone this facet onto another
FacetHolder. |
String |
disabledReason(ObjectAdapter owningAdapter,
org.apache.isis.applib.Identifier identifier) |
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. |
protected String |
toStringValues() |
disables, 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 DisabledObjectFacetViaDisabledMethod(Method method, FacetHolder holder)
public 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 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 impliesResolve()
ImperativeFacetDomainObjectContainer.resolve(Object) to occur first.impliesResolve in interface ImperativeFacetpublic boolean impliesObjectChanged()
ImperativeFacetDomainObjectContainer.objectChanged(Object) to occur afterwards.impliesObjectChanged in interface ImperativeFacetpublic String disabledReason(ObjectAdapter owningAdapter, org.apache.isis.applib.Identifier identifier)
disabledReason in class DisabledObjectFacetAbstractprotected String toStringValues()
toStringValues in class FacetAbstractpublic void copyOnto(FacetHolder holder)
DisabledObjectFacetFacetHolder.
Introduced to allow this facet to be installed onto the
ObjectSpecification, and then copied down onto each of the spec's
ObjectMembers.
copyOnto in interface DisabledObjectFacetCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.