public abstract class ClassFilter<SUPER_TYPE,ANNOTATION_TYPE extends java.lang.annotation.Annotation>
extends java.lang.Object
Defines class filter specification and handle method when the class been found. Note only public and non-abstract class will be filtered out, these two requirements are implicit specification
Constructor and Description |
---|
ClassFilter(boolean publicOnly,
boolean noAbstract,
java.lang.Class<SUPER_TYPE> superType,
java.lang.Class<ANNOTATION_TYPE> annotationType) |
ClassFilter(java.lang.Class<SUPER_TYPE> superType,
java.lang.Class<ANNOTATION_TYPE> annotationType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<ANNOTATION_TYPE> |
annotationType()
Specify the annotation type that target class will be annotated
|
abstract void |
found(java.lang.Class<? extends SUPER_TYPE> clazz)
Once a class has been found as per the requirements of this class filter, Act will load the class and call this method on this filter instance
|
boolean |
noAbstract() |
boolean |
publicOnly() |
java.lang.Class<SUPER_TYPE> |
superType()
Specify the super type that must be extended or implemented by the targeting class
|
public ClassFilter(java.lang.Class<SUPER_TYPE> superType, java.lang.Class<ANNOTATION_TYPE> annotationType)
public ClassFilter(boolean publicOnly, boolean noAbstract, java.lang.Class<SUPER_TYPE> superType, java.lang.Class<ANNOTATION_TYPE> annotationType)
public abstract void found(java.lang.Class<? extends SUPER_TYPE> clazz)
Once a class has been found as per the requirements of this class filter, Act will load the class and call this method on this filter instance
clazz
- the class instance been foundpublic java.lang.Class<SUPER_TYPE> superType()
Specify the super type that must be extended or implemented by the targeting class
public java.lang.Class<ANNOTATION_TYPE> annotationType()
Specify the annotation type that target class will be annotated
public boolean noAbstract()
public boolean publicOnly()
Copyright © 2014–2017 ActFramework. All rights reserved.