public abstract class AnnotatedElementLoader extends ElementLoaderBase<java.lang.Object>
Implementation of AnnotatedElementLoader shall load beans whose class has been annotated by a certain annotation class
| Constructor and Description |
|---|
AnnotatedElementLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.osgl.Osgl.Function |
filter(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container)
Returns a predicate check if an object has annotation as specified as
hint |
protected abstract java.util.List<java.lang.Class<?>> |
load(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass,
boolean loadNonPublic,
boolean loadAbstract)
Implementation shall load list of beans whose class is annotated with
annoClass specified. |
java.lang.Iterable<java.lang.Object> |
load(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container,
Genie genie)
This method will load instances of all public and non-abstract classes that has been annotated by annotation class specified as
value in options |
prioritypublic java.lang.Iterable<java.lang.Object> load(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container,
Genie genie)
This method will load instances of all public and non-abstract classes that has been annotated by annotation class specified as value in options
options - optional parameters specified to refine the loading processcontainer - the bean spec about the container into which the bean to be loadedgenie - the dependency injectorprotected abstract java.util.List<java.lang.Class<?>> load(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass,
boolean loadNonPublic,
boolean loadAbstract)
Implementation shall load list of beans whose class is annotated with annoClass specified. The class of all beans returned must have public access
annoClass - the annotation classloadNonPublic - specify if it should load non public classesloadAbstract - specify if it should load abstract classesannoClasspublic org.osgl.Osgl.Function filter(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container)
Returns a predicate check if an object has annotation as specified as hint
options - not usedcontainer - the bean spec of the container into which the element will be loadedCopyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.