Class BeanUtils

java.lang.Object
org.jboss.as.pojo.service.BeanUtils

public final class BeanUtils extends Object
Bean utils.
Author:
Ales Justin
  • Constructor Details

    • BeanUtils

      public BeanUtils()
  • Method Details

    • 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 null
      beanInfo - the bean info, can be null if enough info
      index - the reflection index, must not be null
      module - 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 null
      beanInfo - the bean info, can be null if enough info
      module - the current CL module, must not be null
      bean - the bean instance
      nullify - 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 info
      bean - the bean instance
      config - the lifecycle config
      defaultMethod - the default method
      Throws:
      Throwable - for any error