public class WeldBootstrapService extends Object implements org.jboss.msc.service.Service<WeldBootstrapService>
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
Constructor and Description |
---|
WeldBootstrapService(WeldDeployment deployment,
org.jboss.weld.bootstrap.api.Environment environment,
String deploymentName) |
Modifier and Type | Method and Description |
---|---|
<T extends org.jboss.weld.bootstrap.api.Service> |
addWeldService(Class<T> type,
T service)
Adds a
Service to the deployment. |
Set<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> |
getBeanDeploymentArchives()
get all beans deployment archives in the deployment
|
javax.enterprise.inject.spi.BeanManager |
getBeanManager()
Gets the
BeanManager linked to the root bean deployment archive. |
org.jboss.weld.manager.BeanManagerImpl |
getBeanManager(String beanArchiveId)
Gets the
BeanManager for a given bean deployment archive id. |
org.jboss.msc.value.InjectedValue<WeldSecurityServices> |
getSecurityServices() |
WeldBootstrapService |
getValue() |
org.jboss.msc.value.InjectedValue<WeldTransactionServices> |
getWeldTransactionServices() |
boolean |
isStarted() |
void |
start(org.jboss.msc.service.StartContext context)
Starts the weld container
|
void |
stop(org.jboss.msc.service.StopContext context)
Stops the container
|
public WeldBootstrapService(WeldDeployment deployment, org.jboss.weld.bootstrap.api.Environment environment, String deploymentName)
public void start(org.jboss.msc.service.StartContext context)
start
in interface org.jboss.msc.service.Service<WeldBootstrapService>
IllegalStateException
- if the container is already runningpublic void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<WeldBootstrapService>
IllegalStateException
- if the container is not runningpublic org.jboss.weld.manager.BeanManagerImpl getBeanManager(String beanArchiveId)
BeanManager
for a given bean deployment archive id.IllegalStateException
- if the container is not runningIllegalArgumentException
- if the bean deployment archive id is not foundpublic <T extends org.jboss.weld.bootstrap.api.Service> void addWeldService(Class<T> type, T service)
Service
to the deployment. This method must not be called after the container has startedpublic javax.enterprise.inject.spi.BeanManager getBeanManager()
BeanManager
linked to the root bean deployment archive. This BeanManager has access to all beans in a
deploymentIllegalStateException
- if the container is not runningpublic Set<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
public boolean isStarted()
public WeldBootstrapService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<WeldBootstrapService>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<WeldSecurityServices> getSecurityServices()
public org.jboss.msc.value.InjectedValue<WeldTransactionServices> getWeldTransactionServices()
Copyright © 2013 JBoss by Red Hat. All rights reserved.