org.nakedobjects.metamodel.facets.actions
Class IteratorFilteringFacetFactory

java.lang.Object
  extended by org.nakedobjects.metamodel.facets.FacetFactoryAbstract
      extended by org.nakedobjects.metamodel.facets.actions.IteratorFilteringFacetFactory
All Implemented Interfaces:
FacetFactory, MethodFilteringFacetFactory, SpecificationLoaderAware

public class IteratorFilteringFacetFactory
extends FacetFactoryAbstract
implements MethodFilteringFacetFactory

Designed to simply filter out Iterable.iterator() method if it exists.

Does not add any Facets.


Constructor Summary
IteratorFilteringFacetFactory()
           
 
Method Summary
 boolean process(java.lang.Class<?> type, MethodRemover methodRemover, FacetHolder holder)
          Process the class, and return the correctly setup annotation if present.
 boolean recognizes(java.lang.reflect.Method method)
           
 
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

IteratorFilteringFacetFactory

public IteratorFilteringFacetFactory()
Method Detail

process

public boolean process(java.lang.Class<?> type,
                       MethodRemover methodRemover,
                       FacetHolder holder)
Description copied from interface: FacetFactory
Process the class, and return the correctly setup annotation if present.

Specified by:
process in interface FacetFactory
Overrides:
process in class FacetFactoryAbstract
Parameters:
type - - class being processed
methodRemover - - allow any methods of the class to be removed
holder - - to attach the facets to
Returns:
true if any facets were added, false otherwise.

recognizes

public boolean recognizes(java.lang.reflect.Method method)
Specified by:
recognizes in interface MethodFilteringFacetFactory


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