public final class AnnotatedElementFactory extends Object
Annotated elements.| Constructor and Description |
|---|
AnnotatedElementFactory(WebBeansContext webBeansContext)
No instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear caches.
|
<X> javax.enterprise.inject.spi.AnnotatedType<X> |
getAnnotatedType(Class<X> annotatedClass)
Get an already registered AnnotatedType.
|
<X> javax.enterprise.inject.spi.AnnotatedConstructor<X> |
newAnnotatedConstructor(Constructor<X> constructor,
javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
Creates and configures new annotated constructor.
|
<X> javax.enterprise.inject.spi.AnnotatedField<X> |
newAnnotatedField(Field field,
javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
Creates and configures new annotated field.
|
<X> javax.enterprise.inject.spi.AnnotatedMethod<X> |
newAnnotatedMethod(Method method,
javax.enterprise.inject.spi.AnnotatedType<X> declaringType)
Creates and configures new annotated method.
|
<X> javax.enterprise.inject.spi.AnnotatedType<X> |
newAnnotatedType(Class<X> annotatedClass)
Creates and configures new annotated type.
|
<X> javax.enterprise.inject.spi.AnnotatedType<X> |
setAnnotatedType(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
This method will get used to manually add AnnoatedTypes to our storage.
|
public AnnotatedElementFactory(WebBeansContext webBeansContext)
public <X> javax.enterprise.inject.spi.AnnotatedType<X> getAnnotatedType(Class<X> annotatedClass)
X - annotatedClass - public <X> javax.enterprise.inject.spi.AnnotatedType<X> setAnnotatedType(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
BeforeBeanDiscovery.addAnnotatedType(AnnotatedType)
Sets the annotatedType and replace the given one.X - annotatedType - public <X> javax.enterprise.inject.spi.AnnotatedType<X> newAnnotatedType(Class<X> annotatedClass)
X - class infoannotatedClass - annotated classpublic <X> javax.enterprise.inject.spi.AnnotatedConstructor<X> newAnnotatedConstructor(Constructor<X> constructor, javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
X - declaring classconstructor - constructorpublic <X> javax.enterprise.inject.spi.AnnotatedField<X> newAnnotatedField(Field field, javax.enterprise.inject.spi.AnnotatedType<X> declaringClass)
X - declaring classfield - field instancedeclaringClass - declaring classpublic <X> javax.enterprise.inject.spi.AnnotatedMethod<X> newAnnotatedMethod(Method method, javax.enterprise.inject.spi.AnnotatedType<X> declaringType)
X - declaring classmethod - annotated methoddeclaringType - declaring class infopublic void clear()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.