Class BeanManagerService

java.lang.Object
org.jboss.as.weld.services.BeanManagerService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<jakarta.enterprise.inject.spi.BeanManager>, org.jboss.msc.value.Value<jakarta.enterprise.inject.spi.BeanManager>

public final class BeanManagerService extends Object implements org.jboss.msc.service.Service<jakarta.enterprise.inject.spi.BeanManager>
Service that provides access to the BeanManger for a (sub)deployment
Author:
Stuart Douglas, Richard Opalka
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.msc.service.ServiceName
     

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeanManagerService(String beanDeploymentArchiveId, Consumer<jakarta.enterprise.inject.spi.BeanManager> beanManagerConsumer, Supplier<WeldBootstrapService> weldContainerSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.enterprise.inject.spi.BeanManager
     
    static org.jboss.msc.service.ServiceName
    serviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    Gets the Bean Manager MSC service name relative to the Deployment Unit.
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      public static final org.jboss.msc.service.ServiceName NAME
  • Constructor Details

  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      public jakarta.enterprise.inject.spi.BeanManager getValue()
      Specified by:
      getValue in interface org.jboss.msc.value.Value<jakarta.enterprise.inject.spi.BeanManager>
    • serviceName

      public static org.jboss.msc.service.ServiceName serviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Gets the Bean Manager MSC service name relative to the Deployment Unit.

      Modules outside of weld subsystem should use WeldCapability instead to get the name of the Bean Manager service associated to the deployment unit.

      Parameters:
      deploymentUnit - The deployment unit to be used.
      Returns:
      The Bean Manager service name.