1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.geronimo.ews.ws4j2ee.context.webservices.server.xmlbeans;
17
18 import org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
19 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.AbstractWSCFContext;
20 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.WSCFException;
21 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext;
22 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFDocument;
23
24 import java.io.InputStream;
25
26 /***
27 * This is the concrete implementation of the WSCFContext where the whole context of the
28 * webservices.xml file will be published. The appropreate factory class will instanciate the class
29 * and in the factory a inputstream to the webservices.xml will be requires. This is not the
30 * starting point of the element tree, instead this s only giving an inteface
31 * to the element tree which is rooted at WSCFDocument.
32 */
33 public class WSCFContextImpl extends AbstractWSCFContext implements WSCFContext {
34 /***
35 * The constructor that will create the element tree starting from the root element as WSCFDocument.
36 *
37 * @param document The document object to the webservices.xml
38 * @throws WSCFException
39 */
40 public WSCFContextImpl(InputStream in, J2EEWebServiceContext context) throws WSCFException {
41 this.document = (WSCFDocument) new WSCFDocumentImpl(in);
42 }
43 }