public class KernelDeploymentParsingProcessor extends Object implements DeploymentUnitProcessor
Constructor and Description |
---|
KernelDeploymentParsingProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Process a deployment for jboss-beans.xml files.
|
protected void |
parseDescriptor(DeploymentUnit unit,
org.jboss.vfs.VirtualFile beansXmlFile)
Parse -jboss-beans.xml file.
|
protected void |
parseDescriptors(DeploymentUnit unit,
org.jboss.vfs.VirtualFile root)
Find and parse -jboss-beans.xml files.
|
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
deploy
in interface DeploymentUnitProcessor
phaseContext
- the deployment unit contextDeploymentUnitProcessingException
protected void parseDescriptors(DeploymentUnit unit, org.jboss.vfs.VirtualFile root) throws DeploymentUnitProcessingException
unit
- the deployment unitroot
- the rootDeploymentUnitProcessingException
- for any errorprotected void parseDescriptor(DeploymentUnit unit, org.jboss.vfs.VirtualFile beansXmlFile) throws DeploymentUnitProcessingException
unit
- the deployment unitbeansXmlFile
- the beans xml fileDeploymentUnitProcessingException
- for any errorpublic void undeploy(DeploymentUnit context)
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
context
- the deployment unit contextCopyright © 2013 JBoss by Red Hat. All rights reserved.