public class EjbJarParsingDeploymentUnitProcessor extends Object implements DeploymentUnitProcessor
DeploymentUnit containing an 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 Pai| Constructor and Description |
|---|
EjbJarParsingDeploymentUnitProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(DeploymentPhaseContext deploymentPhase)
Finds an 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 DeploymentUnitProcessordeploymentPhase - DeploymentUnitProcessingExceptionpublic void undeploy(DeploymentUnit unit)
DeploymentUnitProcessordeploy(); 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 DeploymentUnitProcessorunit - Copyright © 2014 JBoss by Red Hat. All rights reserved.