org.jboss.ejb
Class AutoDeployer
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--org.jboss.util.ServiceMBeanSupport
|
+--org.jboss.ejb.AutoDeployer
- All Implemented Interfaces:
- AutoDeployerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, java.lang.Runnable, Service, ServiceMBean
- public class AutoDeployer
- extends ServiceMBeanSupport
- implements AutoDeployerMBean, java.lang.Runnable
The AutoDeployer is used to automatically deploy EJB-jars.
It can be used on either .jar or .xml files. The AutoDeployer can
be configured to "watch" one or more files. If they are updated they will
be redeployed.
If it is set to watch a directory instead of a single file, all files within that
directory will be watched separately.
When a jar is to be deployed, the AutoDeployer will use a ContainerFactory to deploy it.
- Version:
- $Revision: 1.10 $
- Author:
- Rickard Öberg (rickard.oberg@telkel.com)
- See Also:
ContainerFactory
Constructor Summary |
AutoDeployer(java.lang.String urlList)
|
AutoDeployer(java.lang.String _namedDeployer,
java.lang.String urlList)
|
Method Summary |
void |
addURLs(java.lang.String urlList)
|
protected void |
deploy(java.lang.String url)
|
java.lang.String |
getName()
|
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
protected void |
initService()
|
void |
run()
|
protected void |
startService()
|
protected void |
stopService()
|
protected void |
undeploy(java.lang.String url)
|
Methods inherited from class org.jboss.util.ServiceMBeanSupport |
destroy, destroyService, getState, getStateString, init, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoDeployer
public AutoDeployer(java.lang.String urlList)
AutoDeployer
public AutoDeployer(java.lang.String _namedDeployer,
java.lang.String urlList)
addURLs
public void addURLs(java.lang.String urlList)
- Specified by:
addURLs
in interface AutoDeployerMBean
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getName
public java.lang.String getName()
- Specified by:
getName
in interface ServiceMBean
- Overrides:
getName
in class ServiceMBeanSupport
getObjectName
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
- Overrides:
getObjectName
in class ServiceMBeanSupport
initService
protected void initService()
throws java.lang.Exception
- Overrides:
initService
in class ServiceMBeanSupport
startService
protected void startService()
throws java.lang.Exception
- Overrides:
startService
in class ServiceMBeanSupport
stopService
protected void stopService()
- Overrides:
stopService
in class ServiceMBeanSupport
deploy
protected void deploy(java.lang.String url)
throws java.lang.Exception
undeploy
protected void undeploy(java.lang.String url)
throws java.lang.Exception
Copyright © 2000 The jBoss Organization. All Rights Reserved.