Annotation Interface FactoryCreate
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@CreationRule
@DigesterRule(reflectsRule=FactoryCreateRule.class,
providedBy=FactoryCreateRuleProvider.class)
public @interface FactoryCreate
Classes annotated with
FactoryCreate
will be bound with
FactoryCreateRule
digester rule.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Defines several@FactoryCreate
annotations on the same element. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends AbstractObjectCreationFactory>
The Java class of the object creation factory classThe element matching pattern. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
When true any exceptions thrown during object creation will be ignored.
-
Element Details
-
factoryClass
Class<? extends AbstractObjectCreationFactory> factoryClassThe Java class of the object creation factory class- Returns:
- the Java class of the object creation factory class.
-
pattern
String patternThe element matching pattern.- Returns:
- the element matching pattern.
-
-
-
ignoreCreateExceptions
boolean ignoreCreateExceptionsWhen true any exceptions thrown during object creation will be ignored.- Returns:
- when true any exceptions thrown during object creation will be ignored.
- Default:
- false
-