org.jboss.deployers.plugins.annotations
Class ParametersElement<A extends Annotation,M extends AnnotatedElement>

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.deployers.plugins.annotations.AbstractElement<A,M>
          extended by org.jboss.deployers.plugins.annotations.DefaultElement<A,M>
              extended by org.jboss.deployers.plugins.annotations.ParametersElement<A,M>
Type Parameters:
A - the annotation type
M - the annotated element type
All Implemented Interfaces:
Cloneable, Element<A,M>, org.jboss.util.JBossInterface

public class ParametersElement<A extends Annotation,M extends AnnotatedElement>
extends DefaultElement<A,M>

Parameters annotations element.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.deployers.plugins.annotations.DefaultElement
aoClass, signature
 
Fields inherited from class org.jboss.deployers.plugins.annotations.AbstractElement
annClass, className
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
ParametersElement(ClassLoader classLoader, String className, org.jboss.metadata.spi.signature.Signature signature, Class<A> annClass, A annotation, Class<M> aoClass)
           
 
Method Summary
protected  ClassLoader getClassLoader()
          Get the classloader from weak ref.
protected  Class<?> loadClass(String className)
          Load class from class name.
protected  A readAnnotation()
          Read the annotation.
 
Methods inherited from class org.jboss.deployers.plugins.annotations.DefaultElement
equals, getAnnotatedElement, getHashCode
 
Methods inherited from class org.jboss.deployers.plugins.annotations.AbstractElement
getAnnotation, getOwner, getOwnerClassName
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParametersElement

public ParametersElement(ClassLoader classLoader,
                         String className,
                         org.jboss.metadata.spi.signature.Signature signature,
                         Class<A> annClass,
                         A annotation,
                         Class<M> aoClass)
Method Detail

readAnnotation

protected A readAnnotation()
Description copied from class: AbstractElement
Read the annotation.

Overrides:
readAnnotation in class AbstractElement<A extends Annotation,M extends AnnotatedElement>
Returns:
the read annotation

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.