Class EjbJarParsingDeploymentUnitProcessor

java.lang.Object
org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class EjbJarParsingDeploymentUnitProcessor extends Object implements org.jboss.as.server.deployment.DeploymentUnitProcessor
Processes a 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deploy(org.jboss.as.server.deployment.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.as.server.deployment.DeploymentUnitProcessor

    undeploy
  • Constructor Details

    • EjbJarParsingDeploymentUnitProcessor

      public EjbJarParsingDeploymentUnitProcessor()
  • Method Details

    • deploy

      public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext deploymentPhase) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      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. The metadata is then attached to the deployment unit.
      Specified by:
      deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
      Parameters:
      deploymentPhase -
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException