org.codehaus.jackson.map.introspect
Class AnnotatedClass.FactoryMethodFilter

java.lang.Object
  extended by org.codehaus.jackson.map.introspect.AnnotatedClass.FactoryMethodFilter
All Implemented Interfaces:
MethodFilter
Enclosing class:
AnnotatedClass

public static final class AnnotatedClass.FactoryMethodFilter
extends java.lang.Object
implements MethodFilter

Filter used to only include methods that have signature that is compatible with "factory" methods: are static, take a single argument, and returns something.

NOTE: in future we will probably allow more than one argument, when multi-arg constructors and factory methods are supported (with accompanying annotations to bind args to properties).


Field Summary
static AnnotatedClass.FactoryMethodFilter instance
           
 
Constructor Summary
AnnotatedClass.FactoryMethodFilter()
           
 
Method Summary
 boolean includeMethod(java.lang.reflect.Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final AnnotatedClass.FactoryMethodFilter instance
Constructor Detail

AnnotatedClass.FactoryMethodFilter

public AnnotatedClass.FactoryMethodFilter()
Method Detail

includeMethod

public boolean includeMethod(java.lang.reflect.Method m)
Specified by:
includeMethod in interface MethodFilter