org.apache.commons.digester.annotations.rules
Annotation Type FactoryCreate


@Documented
@Retention(value=RUNTIME)
@Target(value=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:
Digester.addFactoryCreate(String,org.apache.commons.digester.ObjectCreationFactory,boolean)

Required Element Summary
 Class<? extends AbstractObjectCreationFactory> factoryClass
          The Java class of the object creation factory class
 String pattern
          The element matching pattern.
 
Optional Element Summary
 boolean ignoreCreateExceptions
          When true any exceptions thrown during object creation will be ignored.
 

Element Detail

factoryClass

public abstract Class<? extends AbstractObjectCreationFactory> factoryClass
The Java class of the object creation factory class

Returns:
the Java class of the object creation factory class.

pattern

public abstract String pattern
The element matching pattern.

Returns:
the element matching pattern.

ignoreCreateExceptions

public abstract boolean ignoreCreateExceptions
When true any exceptions thrown during object creation will be ignored.

Returns:
when true any exceptions thrown during object creation will be ignored.
Default:
false


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.