Annotation Type FactoryCreate
-
@Documented @Retention(RUNTIME) @Target(TYPE) @CreationRule @DigesterRule(reflectsRule=FactoryCreateRule.class, handledBy=FactoryCreateHandler.class) public @interface FactoryCreate
Classes annotated withFactoryCreatewill be bound withFactoryCreateRuledigester rule.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringpatternThe element matching pattern.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringattributeNameAllows specify the attribute containing an override class name if it is present.java.lang.Class<? extends AbstractObjectCreationFactory<?>>factoryClassThe Java class of the object creation factory class.booleanignoreCreateExceptionsWhen true any exceptions thrown during object creation will be ignored.java.lang.StringnamespaceURIThe namespace URI for which this Rule is relevant, if any.
-
-
-
Element Detail
-
pattern
java.lang.String pattern
The element matching pattern.
-
-
-
factoryClass
java.lang.Class<? extends AbstractObjectCreationFactory<?>> factoryClass
The Java class of the object creation factory class.- Default:
- org.apache.commons.digester3.annotations.rules.FactoryCreate.DefaultObjectCreationFactory.class
-
-
-
attributeName
java.lang.String attributeName
Allows specify the attribute containing an override class name if it is present.- Since:
- 3.0
- Default:
- ""
-
-
-
namespaceURI
java.lang.String namespaceURI
The namespace URI for which this Rule is relevant, if any.- Since:
- 3.0
- Default:
- ""
-
-
-
ignoreCreateExceptions
boolean ignoreCreateExceptions
When true any exceptions thrown during object creation will be ignored.- Default:
- false
-
-