|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.varia.deployment.FoeDeployer
public class 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/interfaces inherited from class org.jboss.deployment.SubDeployerSupport |
---|
SubDeployerSupport.ClassConfiguration |
Field Summary |
---|
Fields inherited from class org.jboss.deployment.SubDeployerSupport |
---|
CONFIGURATION, enhancedSuffixes, 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, 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(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(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(DeploymentInfo di)
At the create phase, the conversion and packing is done. |
void |
destroy(DeploymentInfo di)
|
protected ObjectName |
getObjectName(MBeanServer server,
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(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(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(DeploymentInfo di)
|
Methods inherited from class org.jboss.deployment.SubDeployerSupport |
---|
addDeployableFiles, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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 |
Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
---|
getRelativeOrder, getServiceName, getSuffixes |
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(DeploymentInfo di)
accepts
in interface SubDeployer
accepts
in interface SubDeployerMBean
accepts
in interface FoeDeployerMBean
accepts
in class SubDeployerSupport
public boolean accepts(URL url)
public void init(DeploymentInfo di) throws DeploymentException
init
in interface SubDeployer
init
in interface SubDeployerMBean
init
in interface FoeDeployerMBean
init
in class SubDeployerSupport
DeploymentException
public void create(DeploymentInfo di) throws DeploymentException
create
in interface SubDeployer
create
in interface SubDeployerMBean
create
in interface FoeDeployerMBean
create
in class SubDeployerSupport
DeploymentException
public void start(DeploymentInfo di) throws DeploymentException
start
in interface SubDeployer
start
in interface SubDeployerMBean
start
in interface FoeDeployerMBean
start
in class SubDeployerSupport
DeploymentException
public void stop(DeploymentInfo di)
stop
in interface SubDeployer
stop
in interface SubDeployerMBean
stop
in interface FoeDeployerMBean
stop
in class SubDeployerSupport
public void destroy(DeploymentInfo di)
destroy
in interface SubDeployer
destroy
in interface SubDeployerMBean
destroy
in interface FoeDeployerMBean
destroy
in class SubDeployerSupport
protected void addDeployableJar(DeploymentInfo di, JarFile jarFile) throws DeploymentException
addDeployableJar
in class SubDeployerSupport
DeploymentException
protected void startService() throws Exception
startService
in class SubDeployerSupport
Exception
- if an error occursprotected ObjectName getObjectName(MBeanServer server, ObjectName name) throws MalformedObjectNameException
getObjectName
in class ServiceMBeanSupport
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 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
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 |