public final class AnnotatedElementFactory extends Object
Annotated
elements.Modifier and Type | Field and Description |
---|---|
static String |
OWB_DEFAULT_KEY |
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> Iterable<javax.enterprise.inject.spi.AnnotatedType<X>> |
getAnnotatedTypes(Class<X> annotatedClass)
Get all already registered AnnotatedTypes of the specified type.
|
<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.
|
<X> javax.enterprise.inject.spi.AnnotatedType<X> |
setAnnotatedType(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
String id) |
public static final String OWB_DEFAULT_KEY
public AnnotatedElementFactory(WebBeansContext webBeansContext)
public <X> javax.enterprise.inject.spi.AnnotatedType<X> getAnnotatedType(Class<X> annotatedClass)
X
- annotatedClass
- public <X> Iterable<javax.enterprise.inject.spi.AnnotatedType<X>> getAnnotatedTypes(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> setAnnotatedType(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType, String id)
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–2016 The Apache Software Foundation. All rights reserved.