|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter org.ow2.jonas.lib.service.AbsServiceImpl org.ow2.jonas.ear.internal.JOnASEARService
public class JOnASEARService
JOnAS EAR Service Implementation class. This class provides an implementation of the ear service.
Field Summary | |
---|---|
protected static String |
WORK_APPS_DIR
The name of the working apps directory. |
protected static String |
WORK_DIR
The name of the working directory. |
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
JOnASEARService()
Initialize some Maps at instantiation time. |
Method Summary | |
---|---|
protected void |
doStart()
Start the EAR service. |
protected void |
doStop()
Stop the EAR service. |
List<String> |
getDeployedEars()
Return the list of all deployed applications. |
Integer |
getDeployedEARsNumber()
Returns the number of EARs deployed in the JOnAS server. |
VersioningService |
getVersioningService()
|
protected void |
initWorkingDirectory()
Create working directory for applications. |
boolean |
isEarDeployedByWorkName(String unpackName)
Test if the specified unpack name is already deployed or not. |
boolean |
isEarLoaded(String fileName)
Test if the specified filename is already deployed or not. |
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setEasyBeansService(IEasyBeansService service)
|
void |
setEjbService(EJBService ejbService)
|
void |
setGenstub(boolean isEnabled)
|
void |
setJAXRPCService(IJAXRPCService jaxrpcService)
|
void |
setJmxService(JmxService jmxService)
|
void |
setParsingwithvalidation(boolean validate)
|
void |
setResourceService(ResourceService resourceService)
|
void |
setServiceManager(ServiceManager serviceManager)
Sets tThe service manager. |
void |
setVersioningService(VersioningService versioningService)
|
void |
setWebContainerService(JWebContainerService webContainerService)
|
protected void |
setWorkCleanerService(WorkCleanerService workCleanerService)
Method called when the workCleanerService is bound to the component. |
void |
unsetDeployerManager()
Unbind the IDeployerManager . |
void |
unsetEasyBeansService()
Unbind the IEasyBeansService . |
void |
unsetEjbService()
Unbind the EJBService . |
void |
unsetJAXRPCService()
Unbind the IJAXRPCService . |
void |
unsetResourceService()
Unbind the ResourceService . |
void |
unsetServiceManager()
Sets the service manager to null. |
void |
unsetVersioningService()
Sets the versioning service to null. |
void |
unsetWebContainerService()
Unbind the JWebContainerService . |
void |
useEJB3ChildClassloader(boolean isEnabled)
Enable the use of a child classloader for EJB3s. |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Field Detail |
---|
protected static final String WORK_DIR
protected static final String WORK_APPS_DIR
Constructor Detail |
---|
public JOnASEARService()
Method Detail |
---|
public void setParsingwithvalidation(boolean validate)
validate
- Use a validating parser ?public void setGenstub(boolean isEnabled)
isEnabled
- if generation of stubs need to be enabled ?public void useEJB3ChildClassloader(boolean isEnabled)
isEnabled
- if EJB3 neeeds a child class loaderprotected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- if the stop failed.protected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- if the startup failed.protected void initWorkingDirectory()
protected void setWorkCleanerService(WorkCleanerService workCleanerService)
workCleanerService
- the workCleanerService referencepublic List<String> getDeployedEars()
getDeployedEars
in interface JOnASEARServiceMBean
public Integer getDeployedEARsNumber()
JOnASEARServiceMBean
getDeployedEARsNumber
in interface JOnASEARServiceMBean
public boolean isEarLoaded(String fileName)
isEarLoaded
in interface JOnASEARServiceMBean
fileName
- the name of the ear file.
public boolean isEarDeployedByWorkName(String unpackName)
isEarDeployedByWorkName
in interface EarService
unpackName
- the name of the ear file.
public void setJmxService(JmxService jmxService)
jmxService
- the jmxService to setpublic void setEjbService(EJBService ejbService)
ejbService
- the ejbService to setpublic void unsetEjbService()
EJBService
.
public void setWebContainerService(JWebContainerService webContainerService)
webContainerService
- the webContainerService to setpublic void unsetWebContainerService()
JWebContainerService
.
public void setJAXRPCService(IJAXRPCService jaxrpcService)
jaxrpcService
- the jaxrpcService to setpublic void unsetJAXRPCService()
IJAXRPCService
.
public void setResourceService(ResourceService resourceService)
resourceService
- the resourceService to setpublic void unsetResourceService()
ResourceService
.
public void setEasyBeansService(IEasyBeansService service)
service
- the EJB3 Service to be injected.public void unsetEasyBeansService()
IEasyBeansService
.
public void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager
- the deployerManager to setpublic void unsetDeployerManager()
IDeployerManager
.
public void setVersioningService(VersioningService versioningService)
versioningService
- The versioning service to set.public void unsetVersioningService()
public VersioningService getVersioningService()
public void setServiceManager(ServiceManager serviceManager)
public void unsetServiceManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |