@InjectTag @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) @LoadCollection(value=AnnotatedElementLoader.class) public @interface AnnotatedWith
Mark the type of elements of a field or method parameter should be annotated with specified annotation.
| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
value
Specify the annotation class.
|
| Modifier and Type | Optional Element and Description |
|---|---|
ElementType |
elementType
Specify the type of element the loader should return.
|
boolean |
loadAbstract
Should the loader load abstract class or not.
|
boolean |
loadNonPublic
Should the loader load non-public class or not.
|
public abstract Class<?> value
Specify the annotation class.
public abstract ElementType elementType
Specify the type of element the loader should return.
public abstract boolean loadNonPublic
Should the loader load non-public class or not.
true or false as described abovepublic abstract boolean loadAbstract
Should the loader load abstract class or not.
Note the value of loadAbstract will be ignored if elementType() is set to ElementType.BEAN
true or false as described above.Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.