org.jboss.deployment
Class AltAnnotationMetaDataDeployer

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

public class AltAnnotationMetaDataDeployer
extends AnnotationMetaDataDeployer

A POST_CLASSLOADER deployer which generates metadata from annotations. Alternative option to its super class.

Author:
Ales.Justin@jboss.org

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
org.jboss.deployers.spi.Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from class org.jboss.deployment.AnnotationMetaDataDeployer
CLIENT_ANNOTATED_ATTACHMENT_NAME, EJB_ANNOTATED_ATTACHMENT_NAME, WEB_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
AltAnnotationMetaDataDeployer()
           
 
Method Summary
 void addAnnotationClass(Class<? extends Annotation> annotation)
          Add annotation to matching set.
protected  Collection<Class<?>> getClasses(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, String mainClassName, List<org.jboss.virtual.VirtualFile> classpath)
          Get the classes we want to scan.
 void stop()
          Cleanup annotation classes.
 
Methods inherited from class org.jboss.deployment.AnnotationMetaDataDeployer
deploy, deploy, getMainClassName, isMetaDataCompleteIsDefault, processJBossClientMetaData, processJBossMetaData, processJBossWebMetaData, processMetaData, setMetaDataCompleteIsDefault, undeploy, undeploy
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AltAnnotationMetaDataDeployer

public AltAnnotationMetaDataDeployer()
Method Detail

getClasses

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

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

stop

public void stop()
Cleanup annotation classes.


addAnnotationClass

public void addAnnotationClass(Class<? extends Annotation> annotation)
Add annotation to matching set.

Parameters:
annotation - the annotation class


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