org.ow2.jonas.cdi.weld.internal
Class DefaultWeldService
java.lang.Object
org.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.cdi.weld.internal.DefaultWeldService
- All Implemented Interfaces:
- IWeldService, Service
public class DefaultWeldService
- extends AbsServiceImpl
- implements IWeldService
Weld CDI service implementation.
- Author:
- Guillaume Sauthier
Method Summary |
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 . |
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 |
METAINF_BEANS_XML
public static final String METAINF_BEANS_XML
- See Also:
- Constant Field Values
WEBINF_BEANS_XML
public static final String WEBINF_BEANS_XML
- See Also:
- Constant Field Values
DefaultWeldService
public DefaultWeldService()
doStart
protected void doStart()
throws ServiceException
- Abstract start-up method to be implemented by sub-classes.
- Specified by:
doStart
in class AbsServiceImpl
- Throws:
ServiceException
- service start-up failed
doStop
protected void doStop()
throws ServiceException
- Abstract method for service stopping to be implemented by sub-classes.
- Specified by:
doStop
in class AbsServiceImpl
- Throws:
ServiceException
- service stopping failed
isCdiEnabled
public boolean isCdiEnabled(org.ow2.util.archive.api.IArchive archive)
- Detect if the given
IArchive
contains a beans.xml
.
Checked location includes:
WEB-INF/beans.xml
META-INF/beans.xml
- Specified by:
isCdiEnabled
in interface IWeldService
- Parameters:
archive
- explored archive
- Returns:
true
if the given archive is CDI enabled, false
otherwise.
Copyright © 2012 OW2 Consortium. All Rights Reserved.