Class SingletonComponent

java.lang.Object
org.jboss.as.ee.component.BasicComponent
All Implemented Interfaces:
org.jboss.as.ee.component.Component, org.jboss.as.server.suspend.ServerActivityCallback

public class SingletonComponent extends SessionBeanComponent
Component representing a Singleton Jakarta Enterprise Beans.
Author:
Jaikiran Pai
  • Constructor Details

    • SingletonComponent

      public SingletonComponent(SingletonComponentCreateService singletonComponentCreateService, List<org.jboss.msc.service.ServiceName> dependsOn)
      Construct a new instance.
      Parameters:
      singletonComponentCreateService - the component configuration
      dependsOn -
  • Method Details

    • instantiateComponentInstance

      protected org.jboss.as.ee.component.BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
      Overrides:
      instantiateComponentInstance in class org.jboss.as.ee.component.BasicComponent
    • getComponentInstance

      public SingletonComponentInstance getComponentInstance()
      Returns:
      the SingletonComponentInstance, lazily creating it if necessary.
    • start

      public void start()
      Specified by:
      start in interface org.jboss.as.ee.component.Component
      Overrides:
      start in class org.jboss.as.ee.component.BasicComponent
    • done

      public void done()
      Specified by:
      done in interface org.jboss.as.server.suspend.ServerActivityCallback
      Overrides:
      done in class EJBComponent
    • getLockType

      public jakarta.ejb.LockType getLockType(Method method)
    • getAccessTimeout

      public AccessTimeoutDetails getAccessTimeout(Method method)
    • getDefaultAccessTimeout

      public AccessTimeoutDetails getDefaultAccessTimeout()
    • getLock

      public ReadWriteLock getLock()
    • getAllowedMethodsInformation

      public AllowedMethodsInformation getAllowedMethodsInformation()
      Overrides:
      getAllowedMethodsInformation in class EJBComponent