Class BeansDeployer


  • public class BeansDeployer
    extends Object
    Deploys the all beans that are defined in the ScannerService at the scanner phase.
    • Field Detail

      • deployed

        protected boolean deployed
        Deployment is started or not
      • discoverEjb

        protected boolean discoverEjb
        Discover ejb or not
      • skipVetoedOnPackages

        protected boolean skipVetoedOnPackages
      • skipNoClassDefFoundTriggers

        protected boolean skipNoClassDefFoundTriggers
      • skipValidations

        protected boolean skipValidations
    • Constructor Detail

      • BeansDeployer

        public BeansDeployer​(WebBeansContext webBeansContext)
        Creates a new deployer with given xml configurator.
        Parameters:
        webBeansContext -
    • Method Detail

      • deploy

        public void deploy​(ScannerService scanner)
        Deploys all the defined web beans components in the container startup.

        It deploys from the web-beans.xml files and from the class files. It uses the ScannerService to get classes.

        Throws:
        WebBeansDeploymentException - if any deployment exception occurs
      • configureProducerMethodSpecializations

        public void configureProducerMethodSpecializations()
        Configure direct/indirect specialized producer method beans. Also disable 'overwritten' producer method beans. But only if they got overwritten in an enabled alternative.
      • checkPassivationScope

        protected void checkPassivationScope​(jakarta.enterprise.inject.spi.Bean<?> beanObj)
        Check passivations.
      • addDefaultStereoTypes

        protected void addDefaultStereoTypes()
        Adds default stereotypes.
      • defineEnterpriseWebBean

        protected <T> void defineEnterpriseWebBean​(Class<T> clazz,
                                                   jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                                   jakarta.enterprise.inject.spi.BeanAttributes<T> attributes)
        Defines enterprise bean via plugin.
        Type Parameters:
        T - bean class type
        Parameters:
        clazz - bean class