@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface SubClassFinder
The annotation is used on a certain method to mark it as a callback method when a certain class has been found by super class specified.
The eligible method signature of sub class finder is
@SubClassFinder
public void foo(Class<TYPE>) {...}
Where foo could be any valid Java method name
| Modifier and Type | Fields and Description |
|---|---|
static java.lang.String |
DEF_VALUE |
| Modifier and Type | Optional Element and Description |
|---|---|
AppEventId |
callOn
Specify when to execute the call back for a certain found class.
|
boolean |
noAbstract
Should I collect abstract classes?
|
boolean |
publicOnly
Should I collect only public classes?
|
java.lang.Class<?> |
value
Specify the “What” to find the class, i.e.
|
public abstract java.lang.Class<?> value
Specify the “What” to find the class, i.e. the super class of the target classes to be found.
If value is not specified, then Actframework will get the What information from the method signature
public abstract boolean publicOnly
Should I collect only public classes?
default value is true
true if only public class shall be collected, false otherwisepublic abstract boolean noAbstract
Should I collect abstract classes?
default value is false
true if abstract classes shall be excluded, false otherwisepublic abstract AppEventId callOn
Specify when to execute the call back for a certain found class.
By default the value of callOn is AppEventId.DEPENDENCY_INJECTOR_PROVISIONED
Copyright © 2014–2017 ActFramework. All rights reserved.