站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 system API Documentation 英文版文档

JARDeployer (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档


org.jboss.deployment
Class JARDeployer

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.deployment.SubDeployerSupport
              extended byorg.jboss.deployment.JARDeployer
All Implemented Interfaces:
JARDeployerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Service, ServiceMBean, SubDeployer, SubDeployerMBean

public class JARDeployer
extends SubDeployerSupport
implements JARDeployerMBean

This deployer exists to prevent deployment of packages whose deployers are not yet deployed. It will accept only jar/zip format files or directories that don't have a META-INF directory, or if they do, don't have any .xml files there. It assumes any package with a META-INF/*.xml file needs a specialized deployer. JARDeployerMBean.java is generated by XDoclet.

Version:
$Revision: 1.11 $
Author:
Scott.Stark@jboss.org, David Jencks

Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport
SubDeployerSupport.ClassConfiguration
 
Field Summary
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.deployment.JARDeployerMBean
OBJECT_NAME
 
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
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION
 
Constructor Summary
JARDeployer()
           
 
Method Summary
 boolean accepts(DeploymentInfo di)
          The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
          Sub-classes should override this method if they only need to set their object name during MBean pre-registration.
protected  void stopService()
          Performs SubDeployer deregistration.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, create, createService, deployUrl, destroy, destroyService, getRelativeOrder, getSuffixes, init, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, start, startService, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, 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
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
create, destroy, getRelativeOrder, getSuffixes, init, setRelativeOrder, setSuffixes, start, stop
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Constructor Detail

JARDeployer

public JARDeployer()
Method Detail

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Description copied from class: ServiceMBeanSupport
Sub-classes should override this method if they only need to set their object name during MBean pre-registration.

Overrides:
getObjectName in class ServiceMBeanSupport
Throws:
javax.management.MalformedObjectNameException

stopService

protected void stopService()
Description copied from class: SubDeployerSupport
Performs SubDeployer deregistration.

Overrides:
stopService in class SubDeployerSupport

accepts

public boolean accepts(DeploymentInfo di)
The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.

Specified by:
accepts in interface JARDeployerMBean
Returns:
a boolean value


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.