|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.facets.FacetFactoryAbstract
org.nakedobjects.metamodel.java5.MethodPrefixBasedFacetFactoryAbstract
org.nakedobjects.metamodel.facets.actions.ActionMethodsFacetFactory
public class ActionMethodsFacetFactory
Sets up all the Facets for an action in a single shot.
TODO: should be more fine-grained?
| Field Summary |
|---|
| Fields inherited from class org.nakedobjects.metamodel.java5.MethodPrefixBasedFacetFactoryAbstract |
|---|
CHOICES_PREFIX, CLASS, DEFAULT_PREFIX, NO_PARAMETERS, NO_PARAMETERS_TYPES, OBJECT, VALIDATE_PREFIX |
| Constructor Summary | |
|---|---|
ActionMethodsFacetFactory()
Note that the Facets registered are the generic ones from noa-architecture (where they exist) |
|
| Method Summary | |
|---|---|
RuntimeContext |
getRuntimeContext()
|
boolean |
process(java.lang.reflect.Method actionMethod,
MethodRemover methodRemover,
FacetHolder action)
Process the method, and return the correctly setup annotation if present. |
void |
setRuntimeContext(RuntimeContext runtimeContext)
Injected because RuntimeContextAware |
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetFactoryAbstract |
|---|
getFeatureTypes, getSpecificationLoader, process, processParams, setSpecificationLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.facets.FacetFactory |
|---|
getFeatureTypes, process, processParams |
| Constructor Detail |
|---|
public ActionMethodsFacetFactory()
Facets registered are the generic ones from noa-architecture (where they exist)
| Method Detail |
|---|
public boolean process(java.lang.reflect.Method actionMethod,
MethodRemover methodRemover,
FacetHolder action)
FacetFactory
process in interface FacetFactoryprocess in class FacetFactoryAbstractactionMethod - - method representing the feature being processed (getter for property or collection, or
action)methodRemover - - allow any methods of the class to be removedaction - - to attach the facets to
public RuntimeContext getRuntimeContext()
setRuntimeContext(RuntimeContext)public void setRuntimeContext(RuntimeContext runtimeContext)
RuntimeContextAware
setRuntimeContext in interface RuntimeContextAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||