KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > metadata > WebservicesMetaData


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 // $Id: WebservicesMetaData.java,v 1.7 2004/06/08 14:12:02 tdiesler Exp $
9
package org.jboss.webservice.metadata;
10
11 import java.util.ArrayList JavaDoc;
12 import java.util.HashMap JavaDoc;
13 import java.net.URLClassLoader JavaDoc;
14
15 // $Id: WebservicesMetaData.java,v 1.7 2004/06/08 14:12:02 tdiesler Exp $
16

17 /**
18  * XML Binding root element for <code>webservices.xml</code>
19  *
20  * @author Thomas.Diesler@jboss.org
21  * @since 15-April-2004
22  */

23 public class WebservicesMetaData
24 {
25    // The required <webservice-description> elements
26
private ArrayList JavaDoc webserviceDescriptions = new ArrayList JavaDoc();
27
28    // The modules resource class loader
29
private URLClassLoader JavaDoc resourceCL;
30
31    // Maps the wsdl-file to the wsdl Document
32
// Note the same wsdl can be used in multiple webservice descriptions
33
HashMap JavaDoc wsdlFileMap = new HashMap JavaDoc();
34    // Maps the jaxrpc-mapping-file to {@link JavaWsdlMapping} object
35
// Note the same jaxrpc-mapping.xml can be used in multiple webservice descriptions
36
HashMap JavaDoc jaxrpcMappingFileMap = new HashMap JavaDoc();
37
38    /**
39     * Construct webservices meta data, with a given resource class loader.
40     */

41    public WebservicesMetaData(URLClassLoader JavaDoc resourceCL)
42    {
43       this.resourceCL = resourceCL;
44    }
45
46    public URLClassLoader JavaDoc getResourceLoader()
47    {
48       return resourceCL;
49    }
50
51    public void addWebserviceDescription(WebserviceDescriptionMetaData webserviceDescription)
52    {
53       webserviceDescriptions.add(webserviceDescription);
54    }
55
56    public WebserviceDescriptionMetaData[] getWebserviceDescriptions()
57    {
58       WebserviceDescriptionMetaData[] array = new WebserviceDescriptionMetaData[webserviceDescriptions.size()];
59       webserviceDescriptions.toArray(array);
60       return array;
61    }
62 }
63
Popular Tags