public final class FactoryCreateRuleProvider extends java.lang.Object implements AnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
FactoryCreateRule
.Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
factoryClass |
private boolean |
ignoreCreateExceptions |
Constructor and Description |
---|
FactoryCreateRuleProvider() |
Modifier and Type | Method and Description |
---|---|
FactoryCreateRule |
get()
Provides an instance of
Rule . |
void |
init(FactoryCreate annotation,
java.lang.Class<?> element)
Initializes the provider.
|
private java.lang.Class<?> factoryClass
private boolean ignoreCreateExceptions
public void init(FactoryCreate annotation, java.lang.Class<?> element)
init
in interface AnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
annotation
- the annotation instance.element
- the annotated element reference.public FactoryCreateRule get()
Rule
.
Must never return null.get
in interface AnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
Rule
.