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 java.util.Map; 20 21 import org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter; 22 import org.apache.geronimo.ews.jaxrpcmapping.JaxRpcMapper; 23 import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext; 24 25 /*** 26 * <p>This class decouple the concreate implementations of the 27 * class from the rest of the code</p> 28 * 29 * @author Srinath Perera(hemapani@opensource.lk) 30 */ 31 public interface ContextFactory { 32 33 public WSDLContext createWSDLContext(Object info); 34 35 public JaxRpcMapperContext createJaxRpcMapperContext(JaxRpcMapper mapper, J2eeEmitter emitter); 36 37 // public WSCFContext createWSCFContext(InputStream in)throws GenerationFault; 38 39 public MiscInfo createMiscInfo(Map map); 40 41 public J2EEWebServiceContext getJ2EEWsContext(boolean hasWSDL); 42 43 // public InputOutputFile getInputFile( 44 // String fileName, 45 // InputStream instream) ; 46 // 47 // public InputOutputFile getInputFile( 48 // String fileName) throws GenerationFault ; 49 // public InputOutputFile getInputFile( 50 // InputStream instream); 51 }