01: /*
02: * $Id: SwitchImplFactory.java,v 1.2 2004/12/08 17:01:08 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: package bexee.model.xmltobpel;
10:
11: import org.xml.sax.Attributes;
12:
13: /**
14: * This class is used by the <a
15: * href="http://jakarta.apache.org/commons/digester/">Digester </a> for the
16: * transformation of Switch activities from a BPEL document into
17: * <code>SwitchImpl</code> objects. The creation of those objects is delegated
18: * to the <code>BPELElementFactory</code>.
19: *
20: * @author Patric Fornasier
21: * @author Pawel Kowalski
22: * @version $Revision: 1.2 $, $Date: 2004/12/08 17:01:08 $
23: */
24: public class SwitchImplFactory extends AbstractObjectCreationFactory {
25:
26: /**
27: * Prepare Switch activity values and delegate object creation to the
28: * <code>BPELElementFactory</code>.
29: */
30: public Object createObject(Attributes attributes) throws Exception {
31: return getElementFactory().createSwitch(
32: getStandardAttributes(attributes));
33: }
34:
35: }
|