org.jboss.ejb3
Class AnnotationRepositoryToMetaData

java.lang.Object
  extended by org.jboss.aop.annotation.AnnotationRepository
      extended by org.jboss.ejb3.AnnotationRepositoryToMetaData

public class AnnotationRepositoryToMetaData
extends org.jboss.aop.annotation.AnnotationRepository

AnnotationRepositoryToMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
protected  ConcurrentHashMap<Object,Object> disabledAnnotations
           
 
Fields inherited from class org.jboss.aop.annotation.AnnotationRepository
lazyCollectionLock
 
Constructor Summary
AnnotationRepositoryToMetaData(EJBContainer container)
           
 
Method Summary
 void addAnnotation(javassist.CtMember m, String annotation)
           
 void addAnnotation(Member m, Class annotation, Object value)
           
 void addAnnotation(Member m, String annotation, Object value)
           
 void addClassAnnotation(Class annotation, Object value)
           
 void addClassAnnotation(String annotation, String value)
           
 void disableAnnotation(Member m, String annotation)
           
 void disableAnnotation(String annotation)
           
 void enableAnnotation(String annotation)
           
 Map getAnnotations()
           
 Map getClassAnnotations()
           
protected static org.jboss.metadata.spi.signature.Signature getSignature(javassist.CtMember member)
          Create a signature from javassist member
 boolean hasAnnotation(javassist.CtMember m, String annotation)
           
 boolean hasAnnotation(Member m, Class annotation)
           
 boolean hasAnnotation(Member m, String annotation)
           
 boolean hasClassAnnotation(Class annotation)
           
 boolean hasClassAnnotation(String annotation)
           
protected  Annotation initAnnotation(Object annotation)
          Initialise an annotation
 boolean isDisabled(Class annotation)
           
 boolean isDisabled(Member m, Class annotation)
           
 boolean isDisabled(Member m, String annotation)
           
 boolean isDisabled(String annotation)
           
protected  Class loadClass(String className)
           
 Object resolveAnnotation(Member m, Class annotation)
           
protected  Object resolveAnnotation(Member m, String annotation)
           
 Object resolveClassAnnotation(Class annotation)
           
 
Methods inherited from class org.jboss.aop.annotation.AnnotationRepository
extractAnnotation, initAnnotationsMap, initClassAnnotationsMap, initDisabledAnnotationsMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

disabledAnnotations

protected ConcurrentHashMap<Object,Object> disabledAnnotations
Constructor Detail

AnnotationRepositoryToMetaData

public AnnotationRepositoryToMetaData(EJBContainer container)
Method Detail

getSignature

protected static org.jboss.metadata.spi.signature.Signature getSignature(javassist.CtMember member)
Create a signature from javassist member

Parameters:
member - the member
Returns:
the signature

initAnnotation

protected Annotation initAnnotation(Object annotation)
Initialise an annotation

Parameters:
annotation - the annotation or a string
Returns:
the annotation

loadClass

protected Class loadClass(String className)

addAnnotation

public void addAnnotation(javassist.CtMember m,
                          String annotation)
Overrides:
addAnnotation in class org.jboss.aop.annotation.AnnotationRepository

addAnnotation

public void addAnnotation(Member m,
                          Class annotation,
                          Object value)
Overrides:
addAnnotation in class org.jboss.aop.annotation.AnnotationRepository

addAnnotation

public void addAnnotation(Member m,
                          String annotation,
                          Object value)
Overrides:
addAnnotation in class org.jboss.aop.annotation.AnnotationRepository

addClassAnnotation

public void addClassAnnotation(Class annotation,
                               Object value)
Overrides:
addClassAnnotation in class org.jboss.aop.annotation.AnnotationRepository

addClassAnnotation

public void addClassAnnotation(String annotation,
                               String value)
Overrides:
addClassAnnotation in class org.jboss.aop.annotation.AnnotationRepository

disableAnnotation

public void disableAnnotation(Member m,
                              String annotation)
Overrides:
disableAnnotation in class org.jboss.aop.annotation.AnnotationRepository

disableAnnotation

public void disableAnnotation(String annotation)
Overrides:
disableAnnotation in class org.jboss.aop.annotation.AnnotationRepository

enableAnnotation

public void enableAnnotation(String annotation)
Overrides:
enableAnnotation in class org.jboss.aop.annotation.AnnotationRepository

getAnnotations

public Map getAnnotations()
Overrides:
getAnnotations in class org.jboss.aop.annotation.AnnotationRepository

getClassAnnotations

public Map getClassAnnotations()
Overrides:
getClassAnnotations in class org.jboss.aop.annotation.AnnotationRepository

hasAnnotation

public boolean hasAnnotation(javassist.CtMember m,
                             String annotation)
Overrides:
hasAnnotation in class org.jboss.aop.annotation.AnnotationRepository

hasAnnotation

public boolean hasAnnotation(Member m,
                             Class annotation)
Overrides:
hasAnnotation in class org.jboss.aop.annotation.AnnotationRepository

hasAnnotation

public boolean hasAnnotation(Member m,
                             String annotation)
Overrides:
hasAnnotation in class org.jboss.aop.annotation.AnnotationRepository

hasClassAnnotation

public boolean hasClassAnnotation(Class annotation)
Overrides:
hasClassAnnotation in class org.jboss.aop.annotation.AnnotationRepository

hasClassAnnotation

public boolean hasClassAnnotation(String annotation)
Overrides:
hasClassAnnotation in class org.jboss.aop.annotation.AnnotationRepository

isDisabled

public boolean isDisabled(Class annotation)
Overrides:
isDisabled in class org.jboss.aop.annotation.AnnotationRepository

isDisabled

public boolean isDisabled(Member m,
                          Class annotation)
Overrides:
isDisabled in class org.jboss.aop.annotation.AnnotationRepository

isDisabled

public boolean isDisabled(Member m,
                          String annotation)
Overrides:
isDisabled in class org.jboss.aop.annotation.AnnotationRepository

isDisabled

public boolean isDisabled(String annotation)
Overrides:
isDisabled in class org.jboss.aop.annotation.AnnotationRepository

resolveClassAnnotation

public Object resolveClassAnnotation(Class annotation)
Overrides:
resolveClassAnnotation in class org.jboss.aop.annotation.AnnotationRepository

resolveAnnotation

public Object resolveAnnotation(Member m,
                                Class annotation)
Overrides:
resolveAnnotation in class org.jboss.aop.annotation.AnnotationRepository

resolveAnnotation

protected Object resolveAnnotation(Member m,
                                   String annotation)
Overrides:
resolveAnnotation in class org.jboss.aop.annotation.AnnotationRepository


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