public class EjbJarParsingDeploymentUnitProcessor extends Object implements DeploymentUnitProcessor
DeploymentUnit
containing a ejb-jar.xml and creates EjbJarMetaData
for that unit.
This deployment unit processor
looks for ejb-jar.xml in META-INF of a .jar
and WEB-INF of a .war file. If it finds the ejb-jar.xml in these locations, it parses that file and creates
EjbJarMetaData
out of it. The EjbJarMetaData
is then attached to the DeploymentUnit
with EjbDeploymentAttachmentKeys.EJB_JAR_METADATA
as the key.
Author: Jaikiran PaiConstructor and Description |
---|
EjbJarParsingDeploymentUnitProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext deploymentPhase)
Finds a ejb-jar.xml (at WEB-INF of a .war or META-INF of a .jar) parses the file and creates
metadata out of it.
|
void |
undeploy(DeploymentUnit unit)
Undo the deployment processing.
|
public EjbJarParsingDeploymentUnitProcessor()
public void deploy(DeploymentPhaseContext deploymentPhase) throws DeploymentUnitProcessingException
deploy
in interface DeploymentUnitProcessor
deploymentPhase
- DeploymentUnitProcessingException
public void undeploy(DeploymentUnit unit)
DeploymentUnitProcessor
deploy()
; however, if
the deploy()
method added services, they need not be removed here (they will automatically be removed).
This method should avoid throwing exceptions; any exceptions thrown are logged and ignored. Implementations of this
method cannot assume that the deployment process has (or has not) proceeded beyond the current processor, nor can they
assume that the undeploy()
method will be called from the same thread as the deploy()
method.
undeploy
in interface DeploymentUnitProcessor
unit
- Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.