public final class BeanManagerService extends Object implements org.jboss.msc.service.Service<javax.enterprise.inject.spi.BeanManager>
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
NAME |
| Constructor and Description |
|---|
BeanManagerService(String beanDeploymentArchiveId,
Consumer<javax.enterprise.inject.spi.BeanManager> beanManagerConsumer,
Supplier<WeldBootstrapService> weldContainerSupplier) |
| Modifier and Type | Method and Description |
|---|---|
javax.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) |
public BeanManagerService(String beanDeploymentArchiveId, Consumer<javax.enterprise.inject.spi.BeanManager> beanManagerConsumer, Supplier<WeldBootstrapService> weldContainerSupplier)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic javax.enterprise.inject.spi.BeanManager getValue()
getValue in interface org.jboss.msc.value.Value<javax.enterprise.inject.spi.BeanManager>public static org.jboss.msc.service.ServiceName serviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
Modules outside of weld subsystem should use WeldCapability instead to get the name of the Bean Manager service associated to the deployment unit.
deploymentUnit - The deployment unit to be used.Copyright © 2021 JBoss by Red Hat. All rights reserved.