Class CdiExtension

java.lang.Object
com.sun.faces.cdi.CdiExtension
All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension

public class CdiExtension extends Object implements jakarta.enterprise.inject.spi.Extension
The CDI extension.
  • Constructor Details

    • CdiExtension

      public CdiExtension()
  • Method Details

    • beforeBeanDiscovery

      public void beforeBeanDiscovery(@Observes jakarta.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
      BeforeBeanDiscovery:
      • add impl specific managed beans
      Parameters:
      beforeBeanDiscovery - the before bean discovery.
      beanManager - the bean manager.
    • processBean

      public <T extends DataModel<?>> void processBean(@Observes jakarta.enterprise.inject.spi.ProcessBean<T> processBeanEvent, jakarta.enterprise.inject.spi.BeanManager beanManager)
      ProcessBean:
      Type Parameters:
      T - the generic bean type
      Parameters:
      processBeanEvent - the process bean event
      beanManager - the current bean manager
    • processManagedBean

      public <T> void processManagedBean(@Observes jakarta.enterprise.inject.spi.ProcessManagedBean<T> processManagedBeanEvent, jakarta.enterprise.inject.spi.BeanManager beanManager)
      ProcessManagedBean:
      Type Parameters:
      T - the generic bean type
      Parameters:
      processManagedBeanEvent - the process managed bean event
      beanManager - the current bean manager
    • afterBeanDiscovery

      public void afterBeanDiscovery(@Observes jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
      AfterBeanDiscovery:
      Parameters:
      afterBeanDiscovery - the after bean discovery.
      beanManager - the bean manager.
    • afterDeploymentValidation

      public void afterDeploymentValidation(@Observes jakarta.enterprise.inject.spi.AfterDeploymentValidation event, jakarta.enterprise.inject.spi.BeanManager beanManager)
      AfterDeploymentValidation:
      Parameters:
      event - the after deployment validation event
      beanManager - the current bean manager
    • getForClassToDataModelClass

      public Map<Class<?>,Class<? extends DataModel<?>>> getForClassToDataModelClass()
      Gets the map of classes that can be wrapped by a data model to data model implementation classes
      Returns:
      Map of classes that can be wrapped by a data model to data model implementation classes