jodd.petite
Class PetiteUtil

java.lang.Object
  extended by jodd.petite.PetiteUtil

public class PetiteUtil
extends Object

Few Petite utilities, used internally.


Constructor Summary
PetiteUtil()
           
 
Method Summary
static String[][] convertAnnValueToReferences(String value)
          Converts comma-separated string into double string array.
static String[][] convertRefToReferences(String[] references)
          Converts single string array to double string array.
static String resolveBeanName(Class type, boolean useLongTypeName)
          Resolves bean's name from bean annotation or type name.
static Class<? extends Scope> resolveBeanScopeType(Class type)
          Resolves bean's scope type from the annotation.
static WiringMode resolveBeanWiringMode(Class type)
          Resolves bean's auto-wire flag from the annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PetiteUtil

public PetiteUtil()
Method Detail

convertAnnValueToReferences

public static String[][] convertAnnValueToReferences(String value)
Converts comma-separated string into double string array.


convertRefToReferences

public static String[][] convertRefToReferences(String[] references)
Converts single string array to double string array.


resolveBeanWiringMode

public static WiringMode resolveBeanWiringMode(Class type)
Resolves bean's auto-wire flag from the annotation. Returns default auto-wire if annotation doesn't exist.


resolveBeanScopeType

public static Class<? extends Scope> resolveBeanScopeType(Class type)
Resolves bean's scope type from the annotation. Returns default scope if annotation doesn't exist.


resolveBeanName

public static String resolveBeanName(Class type,
                                     boolean useLongTypeName)
Resolves bean's name from bean annotation or type name. May be used for resolving bean name of base type during registration of bean subclass.