|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.cdi.weld.internal.DefaultWeldService
public class DefaultWeldService
Weld CDI service implementation.
| Constructor Summary | |
|---|---|
DefaultWeldService()
|
|
| Method Summary | |
|---|---|
void |
connectBeanDeploymentArchives(Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> childs,
Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> parents)
Connects all the BDA in the first Collection to each BDA in the second Collection. |
protected void |
doStart()
Abstract start-up method to be implemented by sub-classes. |
protected void |
doStop()
Abstract method for service stopping to be implemented by sub-classes. |
boolean |
isCdiEnabled(org.ow2.util.archive.api.IArchive archive)
Detect if the given IArchive contains a beans.xml. |
org.jboss.weld.bootstrap.api.Bootstrap |
startWeldContainer(org.jboss.weld.bootstrap.spi.Deployment deployment)
Starts a Weld container from a given Weld Deployment. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getSequenceNumber, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject |
|---|
getModelMBean, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWeldService()
| Method Detail |
|---|
protected void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - service start-up failed
protected void doStop()
throws ServiceException
doStop in class AbsServiceImplServiceException - service stopping failedpublic boolean isCdiEnabled(org.ow2.util.archive.api.IArchive archive)
IArchive contains a beans.xml.
Checked location includes:
WEB-INF/beans.xmlMETA-INF/beans.xml
isCdiEnabled in interface IWeldServicearchive - explored archive
true if the given archive is CDI enabled, false otherwise.
public void connectBeanDeploymentArchives(Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> childs,
Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> parents)
connectBeanDeploymentArchives in interface IWeldServicechilds - Collection of BDAsparents - Collection of BDAs that will be accessibles from childspublic org.jboss.weld.bootstrap.api.Bootstrap startWeldContainer(org.jboss.weld.bootstrap.spi.Deployment deployment)
Deployment.
startWeldContainer in interface IWeldServicedeployment - Weld deployment interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||