org.jboss.ejb3.deployers
Class EjbAnnotationMetaDataDeployer

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.ejb3.deployers.EjbAnnotationMetaDataDeployer
All Implemented Interfaces:
org.jboss.deployers.spi.deployer.Deployer, org.jboss.deployers.spi.Ordered

public class EjbAnnotationMetaDataDeployer
extends org.jboss.deployers.spi.deployer.helpers.AbstractDeployer

Version:
$Revision: $
Author:
Carlo de Wolf

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.Ordered.OrderedComparator
 
Field Summary
static String EJB_ANNOTATED_ATTACHMENT_NAME
           
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
EjbAnnotationMetaDataDeployer()
           
 
Method Summary
 void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
           
protected  void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit)
           
protected  Collection<Class<?>> getClasses(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, List<org.jboss.virtual.VirtualFile> classpath)
          Get the classes we want to scan.
protected  void processJBossMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder, Collection<Class<?>> classes)
          Process annotations.
protected  void processMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, List<org.jboss.virtual.VirtualFile> classpath)
           
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutput, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EJB_ANNOTATED_ATTACHMENT_NAME

public static final String EJB_ANNOTATED_ATTACHMENT_NAME
Constructor Detail

EjbAnnotationMetaDataDeployer

public EjbAnnotationMetaDataDeployer()
Method Detail

deploy

public void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
            throws org.jboss.deployers.spi.DeploymentException
Throws:
org.jboss.deployers.spi.DeploymentException

deploy

protected void deploy(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit)
               throws org.jboss.deployers.spi.DeploymentException
Throws:
org.jboss.deployers.spi.DeploymentException

getClasses

protected Collection<Class<?>> getClasses(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                          List<org.jboss.virtual.VirtualFile> classpath)
                                   throws IOException
Get the classes we want to scan.

Parameters:
unit - the deployment unit
mainClassName - the main class name
classpath - the classpath
Returns:
possible classes containing metadata annotations
Throws:
IOException - for any error

processJBossMetaData

protected void processJBossMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                    org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder,
                                    Collection<Class<?>> classes)
Process annotations.

Parameters:
unit - the deployment unit
finder - the annotation finder
classes - the candidate classes

processMetaData

protected void processMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                               List<org.jboss.virtual.VirtualFile> classpath)
                        throws IOException
Throws:
IOException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.