org.jboss.aop.annotation
Class AnnotationRepository
java.lang.Object
org.jboss.aop.annotation.AnnotationRepository
public class AnnotationRepository
- extends Object
Repository for annotations that is used by the ClassAdvisor to override annotations.
Generics have not been added to this class since that causes problems with EJB3 who have a class overriding this one
- Version:
- $Revision: 70916 $
- Author:
- Bill Burke
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)
|
protected Object |
extractAnnotation(Object value,
Class annotation)
|
Map |
getAnnotations()
|
Map |
getClassAnnotations()
|
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 void |
initAnnotationsMap()
|
protected void |
initClassAnnotationsMap()
|
protected void |
initDisabledAnnotationsMap()
|
boolean |
isDisabled(Class annotation)
|
boolean |
isDisabled(Member m,
Class annotation)
|
boolean |
isDisabled(Member m,
String annotation)
|
boolean |
isDisabled(String annotation)
|
Object |
resolveAnnotation(Member m,
Class annotation)
|
protected Object |
resolveAnnotation(Member m,
String annotation)
|
Object |
resolveClassAnnotation(Class annotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lazyCollectionLock
protected Object lazyCollectionLock
- Read/Write lock to be used when lazy creating the collections
AnnotationRepository
public AnnotationRepository()
getAnnotations
public Map getAnnotations()
getClassAnnotations
public Map getClassAnnotations()
addClassAnnotation
public void addClassAnnotation(String annotation,
String value)
addClassAnnotation
public void addClassAnnotation(Class annotation,
Object value)
resolveClassAnnotation
public Object resolveClassAnnotation(Class annotation)
resolveAnnotation
public Object resolveAnnotation(Member m,
Class annotation)
extractAnnotation
protected Object extractAnnotation(Object value,
Class annotation)
resolveAnnotation
protected Object resolveAnnotation(Member m,
String annotation)
disableAnnotation
public void disableAnnotation(Member m,
String annotation)
disableAnnotation
public void disableAnnotation(String annotation)
enableAnnotation
public void enableAnnotation(String annotation)
isDisabled
public boolean isDisabled(Member m,
Class annotation)
isDisabled
public boolean isDisabled(Member m,
String annotation)
isDisabled
public boolean isDisabled(Class annotation)
isDisabled
public boolean isDisabled(String annotation)
addAnnotation
public void addAnnotation(Member m,
Class annotation,
Object value)
addAnnotation
public void addAnnotation(Member m,
String annotation,
Object value)
hasClassAnnotation
public boolean hasClassAnnotation(String annotation)
hasClassAnnotation
public boolean hasClassAnnotation(Class annotation)
hasAnnotation
public boolean hasAnnotation(Member m,
Class annotation)
hasAnnotation
public boolean hasAnnotation(Member m,
String annotation)
hasAnnotation
public boolean hasAnnotation(javassist.CtMember m,
String annotation)
addAnnotation
public void addAnnotation(javassist.CtMember m,
String annotation)
initAnnotationsMap
protected void initAnnotationsMap()
initClassAnnotationsMap
protected void initClassAnnotationsMap()
initDisabledAnnotationsMap
protected void initDisabledAnnotationsMap()
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.