Class BeanUtils

    • Constructor Detail

      • BeanUtils

        public BeanUtils()
    • 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 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