Annotation Type FactoryCreate
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@CreationRule
@DigesterRule(reflectsRule=FactoryCreateRule.class,
handledBy=FactoryCreateHandler.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 final class
Dummy ObjectCreationFactory type - only for annotation value type purposes.static @interface
Defines several@FactoryCreate
annotations on the same element. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAllows specify the attribute containing an override class name if it is present.Class
<? extends AbstractObjectCreationFactory<?>> The Java class of the object creation factory class.boolean
When true any exceptions thrown during object creation will be ignored.The namespace URI for which this Rule is relevant, if any.
-
Element Details
-
factoryClass
Class<? extends AbstractObjectCreationFactory<?>> factoryClassThe Java class of the object creation factory class.- Default:
org.apache.commons.digester3.annotations.rules.FactoryCreate.DefaultObjectCreationFactory.class
-
attributeName
String attributeNameAllows specify the attribute containing an override class name if it is present.- Since:
- 3.0
- Default:
""
-
pattern
String patternThe element matching pattern. -
namespaceURI
String namespaceURIThe namespace URI for which this Rule is relevant, if any.- Since:
- 3.0
- Default:
""
-
ignoreCreateExceptions
boolean ignoreCreateExceptionsWhen true any exceptions thrown during object creation will be ignored.- Default:
false
-