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.12 $
Author:
Rickard Öberg (rickard.oberg@telkel.com)
See Also:
ContainerFactory

Fields inherited from class org.jboss.util.ServiceMBeanSupport
log, STARTED, STARTING, states, STOPPED, STOPPING
 
Fields inherited from interface org.jboss.ejb.AutoDeployerMBean
OBJECT_NAME
 
Constructor Summary
AutoDeployer()
           
AutoDeployer(java.lang.String urlList)
           
AutoDeployer(java.lang.String _namedDeployer, java.lang.String urlList)
           
 
Method Summary
protected  void deploy(java.lang.String url)
           
 java.lang.String getDeployer()
           
 java.lang.String getName()
           
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 java.lang.String getURLs()
           
 void run()
           
 void setDeployer(java.lang.String deployer)
           
 void setURLs(java.lang.String urlList)
           
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, initService, 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
 
Methods inherited from interface org.jboss.util.ServiceMBean
getState, getStateString
 
Methods inherited from interface org.jboss.util.Service
destroy, init, start, stop
 

Constructor Detail

AutoDeployer

public AutoDeployer()

AutoDeployer

public AutoDeployer(java.lang.String urlList)

AutoDeployer

public AutoDeployer(java.lang.String _namedDeployer,
                    java.lang.String urlList)
Method Detail

setURLs

public void setURLs(java.lang.String urlList)
Specified by:
setURLs in interface AutoDeployerMBean

getURLs

public java.lang.String getURLs()
Specified by:
getURLs in interface AutoDeployerMBean

setDeployer

public void setDeployer(java.lang.String deployer)
Specified by:
setDeployer in interface AutoDeployerMBean

getDeployer

public java.lang.String getDeployer()
Specified by:
getDeployer 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

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.