public class PetiteUtil
extends java.lang.Object
| Constructor and Description |
|---|
PetiteUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
beanHasAnnotationName(java.lang.Class type)
Returns
true if bean has name defined by Petite annotation. |
static void |
callDestroyMethods(BeanData beanData)
Calls destroy methods on given BeanData.
|
static java.lang.String[][] |
convertAnnValueToReferences(java.lang.String value)
Converts comma-separated string into double string array.
|
static java.lang.String[][] |
convertRefToReferences(java.lang.String[] references)
Converts single string array to double string array.
|
static <T> T |
newInstance(java.lang.Class<T> type,
PetiteContainer petiteContainer)
Creates new instance of given type.
|
static java.lang.String |
resolveBeanName(java.lang.Class type,
boolean useLongTypeName)
Resolves bean's name from bean annotation or type name.
|
static java.lang.Class<? extends Scope> |
resolveBeanScopeType(java.lang.Class type)
Resolves bean's scope type from the annotation.
|
static WiringMode |
resolveBeanWiringMode(java.lang.Class type)
Resolves bean's auto-wire flag from the annotation.
|
public static <T> T newInstance(java.lang.Class<T> type,
PetiteContainer petiteContainer)
throws java.lang.Exception
PetiteContainer. If that files, uses default
constructor to builds an instance.java.lang.Exceptionpublic static void callDestroyMethods(BeanData beanData)
public static java.lang.String[][] convertAnnValueToReferences(java.lang.String value)
public static java.lang.String[][] convertRefToReferences(java.lang.String[] references)
public static WiringMode resolveBeanWiringMode(java.lang.Class type)
public static java.lang.Class<? extends Scope> resolveBeanScopeType(java.lang.Class type)
null
if annotation doesn't exist.public static java.lang.String resolveBeanName(java.lang.Class type,
boolean useLongTypeName)
public static boolean beanHasAnnotationName(java.lang.Class type)
true if bean has name defined by Petite annotation.Copyright © 2003-2013 Jodd Team