All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jharks.workflow.ActionCreationFactory Maven / Gradle / Ivy

package org.jharks.workflow;

import org.apache.commons.digester.AbstractObjectCreationFactory;
import org.xml.sax.Attributes;

/**
 * Creation Factory for Action objects.
 * @author Michael J. Rizzo
 * @version 1.0
 */

public class ActionCreationFactory extends AbstractObjectCreationFactory {

    /**
     * Create object for specified implementation of Action
     * @param attributes the set of attributes within the XML node processed by the digester.
     * @return an instance of a Action object.
     * @see org.apache.commons.digester.ObjectCreationFactory#createObject(org.xml.sax.Attributes)
     */
    public Object createObject(Attributes attributes) throws Exception {
        String className = attributes.getValue("type");
        return Action.getActionInstance(className);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy