public class ReflectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
createInitialisedBean(Class<T> beanClass,
Properties properties)
Creates the Bean with properties populated.
|
static <T> T |
createInitialisedBean(String beanClassName,
ClassLoader classLoader,
Class<T> beanExpectedType,
Properties properties)
Creates a Bean with properties populated.
|
static <B> Setter<B>[] |
getSetters(Class<B> clazz)
|
public static <T> T createInitialisedBean(String beanClassName, ClassLoader classLoader, Class<T> beanExpectedType, Properties properties) throws Exception
T
- Bean Class
type.beanClassName
- Name of the Bean Class
.classLoader
- ClassLoader
to use to obtain the Bean Class
.beanExpectedType
- Expected type of the Bean.properties
- Properties to configure the Bean.Exception
- If fails to create and populate the Bean.public static <T> T createInitialisedBean(Class<T> beanClass, Properties properties) throws Exception
Copyright © 2005–2016. All rights reserved.