|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.deployment.SubDeployerSupport org.jboss.varia.deployment.FoeDeployer
This is the deployer for other vendor's applications with dynamic migration of vendor-specific DDs to JBoss specific DDs.
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 |
public FoeDeployer()
Method Detail |
public boolean accepts(org.jboss.deployment.DeploymentInfo di)
accepts
in interface org.jboss.deployment.SubDeployer
public boolean accepts(URL url)
public void init(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
init
in interface org.jboss.deployment.SubDeployer
org.jboss.deployment.DeploymentException
public void create(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
create
in interface org.jboss.deployment.SubDeployer
org.jboss.deployment.DeploymentException
public void start(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
start
in interface org.jboss.deployment.SubDeployer
org.jboss.deployment.DeploymentException
public void stop(org.jboss.deployment.DeploymentInfo di)
stop
in interface org.jboss.deployment.SubDeployer
public void destroy(org.jboss.deployment.DeploymentInfo di)
destroy
in interface org.jboss.deployment.SubDeployer
protected void addDeployableJar(org.jboss.deployment.DeploymentInfo di, JarFile jarFile) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void startService() throws Exception
Exception
- if an error occursprotected javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public void addConvertor(Convertor converter)
addConvertor
in interface FoeDeployerMBean
converter
- New Converter to be addedpublic void removeConvertor(Convertor converter)
removeConvertor
in interface FoeDeployerMBean
converter
- Conveter to be removed from the listprotected void inflateJar(URL fileURL, File destinationDirectory) throws org.jboss.deployment.DeploymentException, IOException
inflateJar
copies the jar entries
from the jar url jarUrl to the directory destDir.
fileURL
- URL pointing to the file to be inflateddestinationDirectory
- Directory to which the content shall be inflated to
org.jboss.deployment.DeploymentException
- if an error occurs
IOException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |