org.jboss.deployment
Class OptAnnotationMetaDataDeployer

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

public class OptAnnotationMetaDataDeployer
extends AnnotationMetaDataDeployer

A POST_CLASSLOADER deployer which generates metadata from annotations. Optimized 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
OptAnnotationMetaDataDeployer()
           
 
Method Summary
protected  Collection<Class<?>> getClasses(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.annotation.creator.AbstractCreator creator)
          Get the classes for creator to process.
protected  void processJBossClientMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder, String mainClassName)
          Process jboss app client meta data.
protected  void processJBossMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder)
          Process jboss meta data.
protected  void processJBossWebMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder)
          Process jboss web meta data.
protected  void processMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, org.jboss.metadata.web.spec.WebMetaData webMetaData, org.jboss.metadata.client.spec.ApplicationClientMetaData clientMetaData, List<org.jboss.virtual.VirtualFile> classpath)
          Process metadata.
 
Methods inherited from class org.jboss.deployment.AnnotationMetaDataDeployer
deploy, deploy, getClasses, getMainClassName, isMetaDataCompleteIsDefault, processJBossClientMetaData, processJBossMetaData, processJBossWebMetaData, 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

OptAnnotationMetaDataDeployer

public OptAnnotationMetaDataDeployer()
Method Detail

processMetaData

protected void processMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                               org.jboss.metadata.web.spec.WebMetaData webMetaData,
                               org.jboss.metadata.client.spec.ApplicationClientMetaData clientMetaData,
                               List<org.jboss.virtual.VirtualFile> classpath)
                        throws Exception
Description copied from class: AnnotationMetaDataDeployer
Process metadata.

Overrides:
processMetaData in class AnnotationMetaDataDeployer
Parameters:
unit - the deployment unit
webMetaData - the web metadata
clientMetaData - the client metadata
classpath - the classpath
Throws:
org.jboss.deployers.spi.DeploymentException - for any error
Exception

processJBossWebMetaData

protected void processJBossWebMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                       org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder)
Process jboss web meta data.

Parameters:
unit - the deployment unit
finder - the finder

processJBossClientMetaData

protected void processJBossClientMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                          org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder,
                                          String mainClassName)
                                   throws ClassNotFoundException
Process jboss app client meta data.

Parameters:
unit - the deployment unit
finder - the finder
mainClassName - the main class name
Throws:
ClassNotFoundException - for any error

processJBossMetaData

protected void processJBossMetaData(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                    org.jboss.metadata.annotation.finder.AnnotationFinder<AnnotatedElement> finder)
Process jboss meta data.

Parameters:
unit - the deployment unit
finder - the finder

getClasses

protected Collection<Class<?>> getClasses(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                          org.jboss.metadata.annotation.creator.AbstractCreator creator)
Get the classes for creator to process.

Parameters:
unit - the deployment unit
creator - the creator
Returns:
classes to process


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