View Javadoc

1   /*
2    Copyright (C) 2007 Grid Systems, S.A.
3   
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
8   
9    This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13  
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18  package com.gridsystems.nextgrid.api.pom;
19  
20  import nextgrid.api.pom.AbstractProcess;
21  import nextgrid.api.pom.AsyncProcess;
22  import nextgrid.api.pom.DoWhileProcess;
23  import nextgrid.api.pom.IfThenElseProcess;
24  import nextgrid.api.pom.ProcessFactory;
25  import nextgrid.api.pom.RepeatUntilProcess;
26  import nextgrid.api.pom.SequenceProcess;
27  import nextgrid.api.pom.Service;
28  import nextgrid.api.pom.SplitJoinProcess;
29  import nextgrid.api.pom.UnorderedListProcess;
30  import nextgrid.api.pom.WhileDoProcess;
31  
32  /**
33   * Type description.
34   *
35   * @author Rodrigo Ruiz
36   */
37  public final class ProcessFactoryImpl implements ProcessFactory {
38  
39    /**
40     * {@inheritDoc}
41     */
42    public AbstractProcess newAbstractProcess() {
43      return new AbstractProcessImpl();
44    }
45  
46    /**
47     * {@inheritDoc}
48     */
49    public AsyncProcess newAsyncProcess() {
50      return new AsyncProcessImpl();
51    }
52  
53    /**
54     * {@inheritDoc}
55     */
56    public DoWhileProcess newDoWhileProcess() {
57      return new DoWhileProcessImpl();
58    }
59  
60    /**
61     * {@inheritDoc}
62     */
63    public IfThenElseProcess newIfThenElseProcess() {
64      return new IfThenElseProcessImpl();
65    }
66  
67    /**
68     * {@inheritDoc}
69     */
70    public RepeatUntilProcess newRepeatUntilProcess() {
71      return new RepeatUntilProcessImpl();
72    }
73  
74    /**
75     * {@inheritDoc}
76     */
77    public SequenceProcess newSequenceProcess() {
78      return new SequenceProcessImpl();
79    }
80  
81    /**
82     * {@inheritDoc}
83     */
84    public Service newServiceProcess() {
85      return new ServiceImpl();
86    }
87  
88    /**
89     * {@inheritDoc}
90     */
91    public SplitJoinProcess newSplitJoinProcess() {
92      return new SplitJoinProcessImpl();
93    }
94  
95    /**
96     * {@inheritDoc}
97     */
98    public UnorderedListProcess newUnorderedListProcess() {
99      return new UnorderedListProcessImpl();
100   }
101 
102   /**
103    * {@inheritDoc}
104    */
105   public WhileDoProcess newWhileDoProcess() {
106     return new WhileDoProcessImpl();
107   }
108 
109 }