public abstract class AnnotatedElementLoader extends ElementLoaderBase<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.Lang.Function |
filter(Map<String,Object> options,
BeanSpec container)
Returns a predicate check if an object has annotation as specified as
hint |
protected abstract List<Class<?>> |
load(Class<? extends Annotation> annoClass,
boolean loadNonPublic,
boolean loadAbstract)
Implementation shall load list of beans whose class is annotated with
annoClass specified. |
Iterable<Object> |
load(Map<String,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 Iterable<Object> load(Map<String,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 List<Class<?>> load(Class<? extends 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.Lang.Function filter(Map<String,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–2018 OSGL (Open Source General Library). All rights reserved.