KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webjmx > adapter > xml > AdapterFactoryInit


1 /*
2  * Copyright (C) WebJMX.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the WebJMX License version 2.0.
6  * See the terms of the WebJMX License in the documentation provided with this software.
7  */

8 /*
9  * AdapterFactoryInit.java
10  *
11  * Created on December 22, 2001, 5:28 PM
12  */

13
14 package org.webjmx.adapter.xml;
15
16 import java.util.*;
17
18 /**
19  *
20  * @author john
21  * @version
22  */

23 public class AdapterFactoryInit {
24
25     /** Holds value of property services. */
26     private List services = new ArrayList();
27     
28     /** Holds value of property Adapters. */
29     private List Adapters = new ArrayList();
30     
31     /** Creates new AdapterFactoryInit */
32     public AdapterFactoryInit() {
33     }
34
35     /** Getter for property services.
36      * @return Value of property services.
37      */

38     public java.util.List JavaDoc getServices()
39     {
40         return services;
41     }
42     
43     public ServiceMapping getService(int idx)
44     {
45         return (ServiceMapping)services.get(idx);
46     }
47     
48     /** Getter for property Adapters.
49      * @return Value of property Adapters.
50      */

51     public java.util.List JavaDoc getAdapters()
52     {
53         return Adapters;
54     }
55     
56     public AdapterMapping getAdapter(int idx)
57     {
58         return (AdapterMapping)Adapters.get(idx);
59     }
60     
61 }
62
Popular Tags