org.apache.webbeans.portable
Class AnnotatedElementFactory

java.lang.Object
  extended by org.apache.webbeans.portable.AnnotatedElementFactory

public final class AnnotatedElementFactory
extends Object

Factory for Annotated elements.

Version:
$Rev: 961950 $ $Date: 2010-07-08 23:32:12 +0200 (Do, 08 Jul 2010) $

Constructor Summary
AnnotatedElementFactory()
          No instantiate.
 
Method Summary
 void clear()
          Clear caches.
static AnnotatedElementFactory getInstance()
           
<X> AnnotatedConstructor<X>
newAnnotatedConstructor(Constructor<X> constructor, AnnotatedType<X> declaringClass)
          Creates and configures new annotated constructor.
<X> AnnotatedField<X>
newAnnotatedField(Field field, AnnotatedType<X> declaringClass)
          Creates and configures new annotated field.
<X> AnnotatedMethod<X>
newAnnotatedMethod(Method method, AnnotatedType<X> declaringType)
          Creates and configures new annotated method.
<X> AnnotatedType<X>
newAnnotatedType(Class<X> annotatedClass)
          Creates and configures new annotated type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedElementFactory

public AnnotatedElementFactory()
No instantiate.

Method Detail

getInstance

public static AnnotatedElementFactory getInstance()

newAnnotatedType

public <X> AnnotatedType<X> newAnnotatedType(Class<X> annotatedClass)
Creates and configures new annotated type.

Type Parameters:
X - class info
Parameters:
annotatedClass - annotated class
Returns:
new annotated type

newAnnotatedConstructor

public <X> AnnotatedConstructor<X> newAnnotatedConstructor(Constructor<X> constructor,
                                                           AnnotatedType<X> declaringClass)
Creates and configures new annotated constructor.

Type Parameters:
X - declaring class
Parameters:
constructor - constructor
Returns:
new annotated constructor

newAnnotatedField

public <X> AnnotatedField<X> newAnnotatedField(Field field,
                                               AnnotatedType<X> declaringClass)
Creates and configures new annotated field.

Type Parameters:
X - declaring class
Parameters:
field - field instance
declaringClass - declaring class
Returns:
new annotated field

newAnnotatedMethod

public <X> AnnotatedMethod<X> newAnnotatedMethod(Method method,
                                                 AnnotatedType<X> declaringType)
Creates and configures new annotated method.

Type Parameters:
X - declaring class
Parameters:
method - annotated method
declaringType - declaring class info
Returns:
new annotated method

clear

public void clear()
Clear caches.



Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.