org.jboss.deployers.plugins.annotations
Class DefaultElement<A extends Annotation,M extends AnnotatedElement>
java.lang.Object
org.jboss.util.JBossObject
org.jboss.deployers.plugins.annotations.AbstractElement<A,M>
org.jboss.deployers.plugins.annotations.DefaultElement<A,M>
- Type Parameters:
A
- the annotation typeM
- the annotated element type
- All Implemented Interfaces:
- Cloneable, Element<A,M>, org.jboss.util.JBossInterface
- Direct Known Subclasses:
- ParametersElement
public class DefaultElement<A extends Annotation,M extends AnnotatedElement>
- extends AbstractElement<A,M>
Default annotations element.
- Author:
- Ales Justin
Fields inherited from class org.jboss.util.JBossObject |
hashCode, log, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation |
signature
protected org.jboss.metadata.spi.signature.Signature signature
aoClass
protected Class<M extends AnnotatedElement> aoClass
DefaultElement
public DefaultElement(ClassLoader classLoader,
String className,
org.jboss.metadata.spi.signature.Signature signature,
Class<A> annClass,
A annotation,
Class<M> aoClass)
getAnnotatedElement
public M getAnnotatedElement()
- Description copied from interface:
Element
- Get the annotated element that holds the annotation.
- Returns:
- the annotated element instance
getHashCode
public int getHashCode()
- Overrides:
getHashCode
in class AbstractElement<A extends Annotation,M extends AnnotatedElement>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AbstractElement<A extends Annotation,M extends AnnotatedElement>
getClassLoader
protected ClassLoader getClassLoader()
- Get the classloader from weak ref.
- Returns:
- the classloader
loadClass
protected Class<?> loadClass(String className)
- Load class from class name.
- Parameters:
className
- the class name
- Returns:
- loaded class
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.