jodd.petite.manager
Class CtorResolver

java.lang.Object
  extended by jodd.petite.manager.CtorResolver

public class CtorResolver
extends java.lang.Object

Resolver for constructor injection points.


Field Summary
protected  java.util.Map<java.lang.Class,CtorInjectionPoint> ctors
           
protected static java.lang.String[] EMPTY_STRING
           
 
Constructor Summary
CtorResolver()
           
 
Method Summary
 CtorInjectionPoint resolve(java.lang.Class type)
          Resolves constructor injection point from type.
protected  CtorInjectionPoint resolve(java.lang.Class type, boolean useAnnotation)
           
 CtorInjectionPoint resolveDefault(java.lang.Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctors

protected java.util.Map<java.lang.Class,CtorInjectionPoint> ctors

EMPTY_STRING

protected static final java.lang.String[] EMPTY_STRING
Constructor Detail

CtorResolver

public CtorResolver()
Method Detail

resolve

public CtorInjectionPoint resolve(java.lang.Class type)
Resolves constructor injection point from type. Looks for single annotated constructor. If no annotated constructors found, the total number of constructors will be checked. If there is only one constructor, that one will be used as injection point. If more constructors exist, the default one will be used as injection point.


resolveDefault

public CtorInjectionPoint resolveDefault(java.lang.Class type)

resolve

protected CtorInjectionPoint resolve(java.lang.Class type,
                                     boolean useAnnotation)


Copyright © 2003-2010 Jodd Team