org.jboss.metadata.annotation.creator
Class AbstractEJBProcessor<E extends AnnotatedElement>

java.lang.Object
  extended by org.jboss.metadata.annotation.creator.AbstractFinderUser
      extended by org.jboss.metadata.annotation.creator.AbstractInjectionTargetProcessor<E>
          extended by org.jboss.metadata.annotation.creator.AbstractEJBProcessor<E>
Direct Known Subclasses:
EJBClassProcessor, EJBFieldProcessor, EJBMethodProcessor

public abstract class AbstractEJBProcessor<E extends AnnotatedElement>
extends AbstractInjectionTargetProcessor<E>

Version:
$Revision: 80150 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.metadata.annotation.creator.AbstractFinderUser
finder
 
Constructor Summary
AbstractEJBProcessor(AnnotationFinder<AnnotatedElement> finder)
           
 
Method Summary
protected  AnnotatedEJBReferenceMetaData createEJB(javax.ejb.EJB annotation, E element)
           
 Collection<Class<? extends Annotation>> getAnnotationTypes()
           
protected abstract  String getName(E element)
          Get the ejb name based on the AnnotatedElement
protected abstract  Class getType(E element)
          Get the business interface class based on the AnnotatedElement
 void process(AnnotatedEJBReferencesMetaData refs, E element)
           
protected  void process(AnnotatedEJBReferencesMetaData refs, E element, javax.ejb.EJB annotation)
           
 
Methods inherited from class org.jboss.metadata.annotation.creator.AbstractInjectionTargetProcessor
addReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEJBProcessor

public AbstractEJBProcessor(AnnotationFinder<AnnotatedElement> finder)
Parameters:
finder -
Method Detail

process

public void process(AnnotatedEJBReferencesMetaData refs,
                    E element)

process

protected void process(AnnotatedEJBReferencesMetaData refs,
                       E element,
                       javax.ejb.EJB annotation)

getName

protected abstract String getName(E element)
Get the ejb name based on the AnnotatedElement

Parameters:
element -
Returns:

getType

protected abstract Class getType(E element)
Get the business interface class based on the AnnotatedElement

Parameters:
element -
Returns:

createEJB

protected AnnotatedEJBReferenceMetaData createEJB(javax.ejb.EJB annotation,
                                                  E element)

getAnnotationTypes

public Collection<Class<? extends Annotation>> getAnnotationTypes()


Copyright © 2009 JBoss Inc.. All Rights Reserved.