org.jboss.deployers.spi.annotations
Interface Element<A extends Annotation,M extends AnnotatedElement>

Type Parameters:
A - exact annotation type
M - exact annotated element type
All Known Implementing Classes:
AbstractElement, ClassElement, DefaultElement, ParametersElement

public interface Element<A extends Annotation,M extends AnnotatedElement>

Annotation holder element.

Author:
Ales Justin

Method Summary
 M getAnnotatedElement()
          Get the annotated element that holds the annotation.
 A getAnnotation()
          Get the annotation instance.
 Class<?> getOwner()
          Get the annotation owner class.
 String getOwnerClassName()
          Get the owner class name.
 

Method Detail

getOwnerClassName

String getOwnerClassName()
Get the owner class name. Until we hit getOwner method the class should not be loaded.

Returns:
the owner classname

getOwner

Class<?> getOwner()
Get the annotation owner class.

Returns:
the annotation owner class

getAnnotation

A getAnnotation()
Get the annotation instance.

Returns:
the annotation instance

getAnnotatedElement

M getAnnotatedElement()
Get the annotated element that holds the annotation.

Returns:
the annotated element instance


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