org.nakedobjects.metamodel.facets.actions.executed
Class ExecutedViaNamingConventionFacetFactory
java.lang.Object
org.nakedobjects.metamodel.facets.FacetFactoryAbstract
org.nakedobjects.metamodel.facets.actions.executed.ExecutedViaNamingConventionFacetFactory
- All Implemented Interfaces:
- FacetFactory, SpecificationLoaderAware
public class ExecutedViaNamingConventionFacetFactory
- extends FacetFactoryAbstract
Creates an ExecutedFacet based on the prefix of the action's name.
TODO: think that this prefix is handled by the ActionMethodsFacetFactory.
|
Method Summary |
boolean |
process(java.lang.reflect.Method method,
MethodRemover methodRemover,
FacetHolder holder)
Process the method, and return the correctly setup annotation if present. |
boolean |
recognizes(java.lang.reflect.Method method)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutedViaNamingConventionFacetFactory
public ExecutedViaNamingConventionFacetFactory()
process
public boolean process(java.lang.reflect.Method method,
MethodRemover methodRemover,
FacetHolder holder)
- Description copied from interface:
FacetFactory
- Process the method, and return the correctly setup annotation if present.
- Specified by:
process in interface FacetFactory- Overrides:
process in class FacetFactoryAbstract
- Parameters:
method - - method representing the feature being processed (getter for property or collection, or
action)methodRemover - - allow any methods of the class to be removedholder - - to attach the facets to
- Returns:
- true if any facets were added and therefore should be removed, false
otherwise. Returning true will cause the method to be removed
recognizes
public boolean recognizes(java.lang.reflect.Method method)
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.