View Javadoc

1   /*
2    * Copyright 2001-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  
17  package org.apache.geronimo.ews.ws4j2ee.context;
18  
19  import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
20  import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.WebContext;
21  import org.apache.geronimo.ews.ws4j2ee.context.webservices.client.interfaces.ServiceReferanceContext;
22  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext;
23  import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
24  import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory;
25  
26  /***
27   * <p>This interface has all the information about the J2EE webservice that is
28   * going to be genarated. from this interface onward all the codes are
29   * ws4j2ee. If we using any class from the geronimo deployment we should
30   * wrap them. This is a Code whith runing once. It is worth keeping the
31   * code independent.<p>
32   * <p>This interface and related interfaces has both getter and setter methods
33   * but who ever implements this interface might not need the both.
34   * e.g. there can be two concreate implementations for this class
35   * for the cases
36   * <ol>
37   * <li>have WSDL</li>
38   * <li>do not have WSDL</li>
39   * </ol>
40   * if some method is not requried please throw java.lang.UnsupportedOperationException</p>
41   *
42   * @author Srinath Perera(hemapani@opensource.lk)
43   */
44  
45  public interface J2EEWebServiceContext {
46      /***
47       * Information about the WSDL file
48       *
49       * @return
50       */
51      public WSDLContext getWSDLContext();
52  
53      public void setWSDLContext(WSDLContext wsdlcontext);
54  
55      /***
56       * Information about the webservices.xml file
57       *
58       * @return
59       */
60      public WSCFContext getWSCFContext();
61  
62      public void setWSCFContext(WSCFContext wscfcontext);
63  
64      /***
65       * Information about the jaxrpcmapping.xml file
66       *
67       * @return
68       */
69      public JaxRpcMapperContext getJAXRPCMappingContext();
70  
71      public void setJAXRPCMappingContext(JaxRpcMapperContext context);
72  
73      /***
74       * Have the mislaneous infomation about the web service.
75       *
76       * @return
77       */
78      public MiscInfo getMiscInfo();
79  
80      public void setMiscInfo(MiscInfo info);
81  
82      /***
83       * validate the context
84       */
85      public void validate();
86  
87      /***
88       * Information about which implementation should used for by the tool
89       * Changing this one can change how the tool behave.
90       *
91       * @param factory
92       */
93      public void setFactory(Ws4J2eeFactory factory);
94  
95      public Ws4J2eeFactory getFactory();
96  
97      public EJBContext getEJBDDContext();
98  
99      public void setEJBDDContext(EJBContext context);
100 
101     public WebContext getWebDDContext();
102 
103     public void setWebDDContext(WebContext context);
104 
105     public ServiceReferanceContext getServiceReferanceContext(int index);
106 
107     public void addServiceReferanceContext(ServiceReferanceContext context);
108 
109     public int getServiceReferanceContextCount();
110 }