KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > pipelines > PipelineDescriptor


1 /*
2  * Copyright 2000-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jahia.pipelines;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 import org.jahia.pipelines.valves.ValveDescriptor;
22 import org.jahia.utils.xml.betwixt.BaseDescriptor;
23
24 /**
25  * This descriptor bean represents the configuration used to create a
26  * Summit <code>Pipeline</code>.
27  *
28  * @author <a HREF="mailto:john@zenplex.com">John Thorhauer</a>
29  * @author <a HREF="mailto:jason@zenplex.com">Jason van Zyl</a>
30  * @version $Id: PipelineDescriptor.java 6702 2004-05-28 15:34:30Z shuber $
31  */

32 public class PipelineDescriptor
33     extends BaseDescriptor
34 {
35     /**
36      * List of valve descriptors
37      */

38     private List JavaDoc valveDescriptors;
39
40     /**
41      * Default contructor
42      */

43     public PipelineDescriptor()
44     {
45         valveDescriptors = new ArrayList JavaDoc();
46     }
47
48     /**
49      * Add a ValveDescriptor to the Pipeline
50      * descriptor
51      *
52      * @param ValveDescriptor
53      */

54     public void addValveDescriptor(ValveDescriptor valveDescriptor)
55     {
56         valveDescriptors.add(valveDescriptor);
57     }
58
59     /**
60      * Return a list of ValveDesccriptors
61      *
62      * @return List of ValveDesccriptors
63      */

64     public List JavaDoc getValveDescriptors()
65     {
66         return this.valveDescriptors;
67     }
68 }
69
Popular Tags