Annotation Type 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.- Since:
- 2.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@FactoryCreateannotations 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 ElementDescriptionbooleanWhen 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
-