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

FoeDeployer (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.varia.deployment
Class FoeDeployer

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

public class FoeDeployer
extends org.jboss.deployment.SubDeployerSupport
implements org.jboss.deployment.SubDeployer, FoeDeployerMBean

This is the deployer for other vendor's applications with dynamic migration of vendor-specific DDs to JBoss specific DDs.

Version:
$Revision: 1.9 $
Author:
Andreas Schaefer
See Also:
Convertor

Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.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.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
 
Fields inherited from interface org.jboss.varia.deployment.FoeDeployerMBean
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
 
Constructor Summary
FoeDeployer()
           
 
Method Summary
 boolean accepts(org.jboss.deployment.DeploymentInfo di)
          Returns true if the there is a converter available to convert the deployment unit.
 boolean accepts(URL url)
          Returns true if the there is a converter available to convert the deployment unit.
 void addConvertor(Convertor converter)
          Add a new conveter to the list.
protected  void addDeployableJar(org.jboss.deployment.DeploymentInfo di, JarFile jarFile)
          This method is called in SubDeployerSupport.processNestedDeployments() The method is overriden to deploy the deployments acceptable by FoeDeployer only.
 void create(org.jboss.deployment.DeploymentInfo di)
          At the create phase, the conversion and packing is done.
 void destroy(org.jboss.deployment.DeploymentInfo di)
           
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
          Returns the ObjectName
protected  void inflateJar(URL fileURL, File destinationDirectory)
          The inflateJar copies the jar entries from the jar url jarUrl to the directory destDir.
 void init(org.jboss.deployment.DeploymentInfo di)
          At the init phase the deployment unit and its subdeployment units are unpacked.
 void removeConvertor(Convertor converter)
          Removes a conveter from the list of converters.
 void start(org.jboss.deployment.DeploymentInfo di)
          This method stops this deployment because it is not of any use anymore (conversion is done)
protected  void startService()
          The startService method - gets the mbeanProxies for MainDeployer and ServiceController; - creates scratch directory for foe work.
 void stop(org.jboss.deployment.DeploymentInfo di)
           
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, createService, deployUrl, destroyService, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, stopService
 
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.SubDeployer
getRelativeOrder, getServiceName, getSuffixes, setRelativeOrder, setSuffixes
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

FoeDeployer

public FoeDeployer()
Method Detail

accepts

public boolean accepts(org.jboss.deployment.DeploymentInfo di)
Returns true if the there is a converter available to convert the deployment unit.

Specified by:
accepts in interface org.jboss.deployment.SubDeployer

accepts

public boolean accepts(URL url)
Returns true if the there is a converter available to convert the deployment unit.


init

public void init(org.jboss.deployment.DeploymentInfo di)
          throws org.jboss.deployment.DeploymentException
At the init phase the deployment unit and its subdeployment units are unpacked.

Specified by:
init in interface org.jboss.deployment.SubDeployer
Throws:
org.jboss.deployment.DeploymentException

create

public void create(org.jboss.deployment.DeploymentInfo di)
            throws org.jboss.deployment.DeploymentException
At the create phase, the conversion and packing is done.

Specified by:
create in interface org.jboss.deployment.SubDeployer
Throws:
org.jboss.deployment.DeploymentException

start

public void start(org.jboss.deployment.DeploymentInfo di)
           throws org.jboss.deployment.DeploymentException
This method stops this deployment because it is not of any use anymore (conversion is done)

Specified by:
start in interface org.jboss.deployment.SubDeployer
Throws:
org.jboss.deployment.DeploymentException

stop

public void stop(org.jboss.deployment.DeploymentInfo di)
Specified by:
stop in interface org.jboss.deployment.SubDeployer

destroy

public void destroy(org.jboss.deployment.DeploymentInfo di)
Specified by:
destroy in interface org.jboss.deployment.SubDeployer

addDeployableJar

protected void addDeployableJar(org.jboss.deployment.DeploymentInfo di,
                                JarFile jarFile)
                         throws org.jboss.deployment.DeploymentException
This method is called in SubDeployerSupport.processNestedDeployments() The method is overriden to deploy the deployments acceptable by FoeDeployer only.

Throws:
org.jboss.deployment.DeploymentException

startService

protected void startService()
                     throws Exception
The startService method - gets the mbeanProxies for MainDeployer and ServiceController; - creates scratch directory for foe work.

Throws:
Exception - if an error occurs

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Returns the ObjectName

Throws:
javax.management.MalformedObjectNameException

addConvertor

public void addConvertor(Convertor converter)
Add a new conveter to the list. If the same converter is added, this new one won't be added, meaning everything stays the same. This method is normally called by a Converter to be called by this deployer to convert.

Specified by:
addConvertor in interface FoeDeployerMBean
Parameters:
converter - New Converter to be added

removeConvertor

public void removeConvertor(Convertor converter)
Removes a conveter from the list of converters. If the converter does not exist nothing happens. This method is normally called by a Converter to be removed from the list if not serving anymore.

Specified by:
removeConvertor in interface FoeDeployerMBean
Parameters:
converter - Conveter to be removed from the list

inflateJar

protected void inflateJar(URL fileURL,
                          File destinationDirectory)
                   throws org.jboss.deployment.DeploymentException,
                          IOException
The inflateJar copies the jar entries from the jar url jarUrl to the directory destDir.

Parameters:
fileURL - URL pointing to the file to be inflated
destinationDirectory - Directory to which the content shall be inflated to
Throws:
org.jboss.deployment.DeploymentException - if an error occurs
IOException - if an error occurs


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