org.apache.webbeans.portable
Class AnnotatedElementFactory

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

public final class AnnotatedElementFactory
extends java.lang.Object

Factory for Annotated elements.

Version:
$Rev: 1084178 $ $Date: 2011-03-22 14:50:35 +0100 (Di, 22 Mär 2011) $

Constructor Summary
AnnotatedElementFactory(WebBeansContext webBeansContext)
          No instantiate.
 
Method Summary
 void clear()
          Clear caches.
static AnnotatedElementFactory getInstance()
          Deprecated. 
<X> javax.enterprise.inject.spi.AnnotatedConstructor<X>
newAnnotatedConstructor(java.lang.reflect.Constructor<X> constructor, javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
          Creates and configures new annotated constructor.
<X> javax.enterprise.inject.spi.AnnotatedField<X>
newAnnotatedField(java.lang.reflect.Field field, javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
          Creates and configures new annotated field.
<X> javax.enterprise.inject.spi.AnnotatedMethod<X>
newAnnotatedMethod(java.lang.reflect.Method method, javax.enterprise.inject.spi.AnnotatedType<X> declaringType)
          Creates and configures new annotated method.
<X> javax.enterprise.inject.spi.AnnotatedType<X>
newAnnotatedType(java.lang.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(WebBeansContext webBeansContext)
No instantiate.

Method Detail

getInstance

@Deprecated
public static AnnotatedElementFactory getInstance()
Deprecated. 


newAnnotatedType

public <X> javax.enterprise.inject.spi.AnnotatedType<X> newAnnotatedType(java.lang.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> javax.enterprise.inject.spi.AnnotatedConstructor<X> newAnnotatedConstructor(java.lang.reflect.Constructor<X> constructor,
                                                                                       javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
Creates and configures new annotated constructor.

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

newAnnotatedField

public <X> javax.enterprise.inject.spi.AnnotatedField<X> newAnnotatedField(java.lang.reflect.Field field,
                                                                           javax.enterprise.inject.spi.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> javax.enterprise.inject.spi.AnnotatedMethod<X> newAnnotatedMethod(java.lang.reflect.Method method,
                                                                             javax.enterprise.inject.spi.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-2011 The Apache Software Foundation. All Rights Reserved.