org.apache.commons.digester3.annotations.rules
Class FactoryCreate.DefaultObjectCreationFactory
java.lang.Object
org.apache.commons.digester3.AbstractObjectCreationFactory<Object>
org.apache.commons.digester3.annotations.rules.FactoryCreate.DefaultObjectCreationFactory
- All Implemented Interfaces:
- ObjectCreationFactory<Object>
- Enclosing class:
- FactoryCreate
public static final class FactoryCreate.DefaultObjectCreationFactory
- extends AbstractObjectCreationFactory<Object>
Dummy ObjectCreationFactory type - only for annotation value type purposes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryCreate.DefaultObjectCreationFactory
public FactoryCreate.DefaultObjectCreationFactory()
createObject
public Object createObject(Attributes attributes)
throws Exception
- Factory method called by
FactoryCreateRule
to supply an object based on the element's attributes.
- Specified by:
createObject
in interface ObjectCreationFactory<Object>
- Specified by:
createObject
in class AbstractObjectCreationFactory<Object>
- Parameters:
attributes
- the element's attributes
- Returns:
- creates a new T instance
- Throws:
Exception
- any exception thrown will be propagated upwards
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.