Package org.jboss.as.weld.services
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 org.jboss.msc.service.ServiceName
NAME
-
Constructor Summary
Constructors Constructor Description BeanManagerService(String beanDeploymentArchiveId, Consumer<jakarta.enterprise.inject.spi.BeanManager> beanManagerConsumer, Supplier<WeldBootstrapService> weldContainerSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.enterprise.inject.spi.BeanManager
getValue()
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)
-
-
-
Constructor Detail
-
BeanManagerService
public BeanManagerService(String beanDeploymentArchiveId, Consumer<jakarta.enterprise.inject.spi.BeanManager> beanManagerConsumer, Supplier<WeldBootstrapService> weldContainerSupplier)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
- Specified by:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public jakarta.enterprise.inject.spi.BeanManager getValue()
- Specified by:
getValue
in interfaceorg.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.
-
-