Class SingletonComponentDescription

java.lang.Object
org.jboss.as.ee.component.ComponentDescription
All Implemented Interfaces:
org.jboss.as.ee.component.ResourceInjectionTarget

public class SingletonComponentDescription extends SessionBeanComponentDescription
Component description for a singleton bean
Author:
Jaikiran Pai
  • Constructor Details

    • SingletonComponentDescription

      public SingletonComponentDescription(String componentName, String componentClassName, EjbJarDescription ejbJarDescription, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.SessionBeanMetaData descriptorData)
      Construct a new instance.
      Parameters:
      componentName - the component name
      componentClassName - the component instance class name
      ejbJarDescription - the module description
  • Method Details

    • createConfiguration

      public org.jboss.as.ee.component.ComponentConfiguration createConfiguration(org.jboss.as.server.deployment.reflect.ClassReflectionIndex classIndex, ClassLoader moduleClassLoader, org.jboss.modules.ModuleLoader moduleLoader)
      Overrides:
      createConfiguration in class org.jboss.as.ee.component.ComponentDescription
    • isInitOnStartup

      public boolean isInitOnStartup()
      Returns true if the singleton bean is marked for init-on-startup (a.k.a @Startup). Else returns false

      Returns:
    • initOnStartup

      public void initOnStartup()
      Marks the singleton bean for init-on-startup
    • getSessionBeanType

      Description copied from class: SessionBeanComponentDescription
      Returns the type of the session bean
      Specified by:
      getSessionBeanType in class SessionBeanComponentDescription
      Returns:
    • setupViewInterceptors

      protected void setupViewInterceptors(EJBViewDescription view)
      Overrides:
      setupViewInterceptors in class SessionBeanComponentDescription
    • getSessionBeanObjectViewConfigurator

      protected org.jboss.as.ee.component.ViewConfigurator getSessionBeanObjectViewConfigurator()
      Specified by:
      getSessionBeanObjectViewConfigurator in class SessionBeanComponentDescription
    • getDependsOn

      public List<org.jboss.msc.service.ServiceName> getDependsOn()
    • isTimerServiceApplicable

      public boolean isTimerServiceApplicable()
      Overrides:
      isTimerServiceApplicable in class org.jboss.as.ee.component.ComponentDescription