org.nakedobjects.metamodel.facets.actcoll.typeof
Class TypeOfAnnotationFacetFactory

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetFactoryAbstract
      extended by org.nakedobjects.metamodel.java5.AnnotationBasedFacetFactoryAbstract
          extended by org.nakedobjects.metamodel.facets.actcoll.typeof.TypeOfAnnotationFacetFactory
All Implemented Interfaces:
FacetFactory, AnnotationBasedFacetFactory, CollectionTypeRegistryAware, SpecificationLoaderAware

public class TypeOfAnnotationFacetFactory
extends AnnotationBasedFacetFactoryAbstract
implements CollectionTypeRegistryAware


Constructor Summary
TypeOfAnnotationFacetFactory()
           
 
Method Summary
 boolean process(java.lang.reflect.Method method, MethodRemover methodRemover, FacetHolder holder)
          Process the method, and return the correctly setup annotation if present.
 void setCollectionTypeRegistry(CollectionTypeRegistry collectionTypeRegistry)
           
 
Methods inherited from class org.nakedobjects.metamodel.java5.AnnotationBasedFacetFactoryAbstract
decodeWhen, getAnnotation, getAnnotation, getParameterAnnotations, isAnnotationPresent, isString, recognizes
 
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
 

Constructor Detail

TypeOfAnnotationFacetFactory

public TypeOfAnnotationFacetFactory()
Method Detail

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 removed
holder - - 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

setCollectionTypeRegistry

public void setCollectionTypeRegistry(CollectionTypeRegistry collectionTypeRegistry)
Specified by:
setCollectionTypeRegistry in interface CollectionTypeRegistryAware


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.