当前页面:
在线文档首页 >
JBoss 3.2.7 system API Documentation 英文版文档
URLDirectoryScanner (JBoss System API) - JBoss 3.2.7 system API Documentation 英文版文档
org.jboss.deployment.scanner
Class URLDirectoryScanner
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.scanner.AbstractDeploymentScanner
org.jboss.deployment.scanner.URLDirectoryScanner
- All Implemented Interfaces:
- DeploymentScanner, DeploymentScannerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Service, ServiceMBean, URLDirectoryScannerMBean
- public class URLDirectoryScanner
- extends AbstractDeploymentScanner
- implements DeploymentScanner, URLDirectoryScannerMBean
This class is similar to the URLDeploymentScanner (
- Version:
- Author:
- Larry Sanderson
- See Also:
org.jboss.deployment.scanner.URLDeploymentScanner). It is designed
to deploy direct URLs and to scan directories. The distinction between
the two is that this class forces the user to specify which entries are
directories to scan, and which are urls to deploy.
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLDirectoryScanner
public URLDirectoryScanner()
addScanURL
public void addScanURL(URL url)
- Specified by:
addScanURL
in interface URLDirectoryScannerMBean
addScanURL
public void addScanURL(String url)
throws MalformedURLException
- Specified by:
addScanURL
in interface URLDirectoryScannerMBean
- Throws:
MalformedURLException
addScanDir
public void addScanDir(URL url,
Comparator comp,
FileFilter filter)
- Specified by:
addScanDir
in interface URLDirectoryScannerMBean
addScanDir
public void addScanDir(String urlSpec,
String compClassName,
String filterClassName)
throws MalformedURLException
- Specified by:
addScanDir
in interface URLDirectoryScannerMBean
- Throws:
MalformedURLException
removeScanURL
public void removeScanURL(URL url)
- Specified by:
removeScanURL
in interface URLDirectoryScannerMBean
setURLs
public void setURLs(Element elem)
- Specified by:
setURLs
in interface URLDirectoryScannerMBean
setURLComparator
public void setURLComparator(String comparatorClassName)
- Specified by:
setURLComparator
in interface URLDirectoryScannerMBean
getURLComparator
public String getURLComparator()
- Specified by:
getURLComparator
in interface URLDirectoryScannerMBean
setFilter
public void setFilter(String filterClassName)
- Specified by:
setFilter
in interface URLDirectoryScannerMBean
getFilter
public String getFilter()
- Specified by:
getFilter
in interface URLDirectoryScannerMBean
scan
public void scan()
- Scan all urls.
- Specified by:
scan
in interface DeploymentScanner
- Specified by:
scan
in class AbstractDeploymentScanner
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws Exception
- Obtain the Service values. This was copied from Jason Dillons
URLDeploymentScanner. Thanks Jason!
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
- Overrides:
preRegister
in class ServiceMBeanSupport
- Parameters:
server
- Reference to the JMX Agent this MBean is registered onname
- Name specified by the creator of the MBean. Note that you can
overwrite it when the given ObjectName is null otherwise the
change is discarded (maybe a bug in JMX-RI).
- Throws:
Exception
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.