Package org.jboss.as.pojo.service
Class BeanUtils
- java.lang.Object
-
- org.jboss.as.pojo.service.BeanUtils
-
public final class BeanUtils extends Object
Bean utils.- Author:
- Ales Justin
-
-
Constructor Summary
Constructors Constructor Description BeanUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigure(BeanMetaDataConfig beanConfig, BeanInfo beanInfo, org.jboss.modules.Module module, Object bean, boolean nullify)Configure bean.static voiddispatchLifecycleJoinpoint(BeanInfo beanInfo, Object bean, LifecycleConfig config, String defaultMethod)Dispatch lifecycle joinpoint.static ObjectinstantiateBean(BeanMetaDataConfig beanConfig, BeanInfo beanInfo, org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index, org.jboss.modules.Module module)Instantiate bean.
-
-
-
Method Detail
-
instantiateBean
public static Object instantiateBean(BeanMetaDataConfig beanConfig, BeanInfo beanInfo, org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index, org.jboss.modules.Module module) throws Throwable
Instantiate bean.- Parameters:
beanConfig- the bean metadata config, must not be nullbeanInfo- the bean info, can be null if enough infoindex- the reflection index, must not be nullmodule- the current CL module, must not be null- Returns:
- new bean instance
- Throws:
Throwable- for any error
-
configure
public static void configure(BeanMetaDataConfig beanConfig, BeanInfo beanInfo, org.jboss.modules.Module module, Object bean, boolean nullify) throws Throwable
Configure bean.- Parameters:
beanConfig- the bean metadata config, must not be nullbeanInfo- the bean info, can be null if enough infomodule- the current CL module, must not be nullbean- the bean instancenullify- do we nullify property- Throws:
Throwable- for any error
-
dispatchLifecycleJoinpoint
public static void dispatchLifecycleJoinpoint(BeanInfo beanInfo, Object bean, LifecycleConfig config, String defaultMethod) throws Throwable
Dispatch lifecycle joinpoint.- Parameters:
beanInfo- the bean infobean- the bean instanceconfig- the lifecycle configdefaultMethod- the default method- Throws:
Throwable- for any error
-
-