/** * * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.geronimo.j2ee.deployment; import org.apache.geronimo.common.DeploymentException; import org.apache.geronimo.gbean.GBeanData; import java.util.jar.JarFile; import java.util.Map; import java.net.URL; /** * @version $Rev$ $Date$ */ public interface WebServiceBuilder { Map parseWebServiceDescriptor(URL wsDDUrl, JarFile moduleFile, boolean isEJB, Map correctedPortLocations) throws DeploymentException; //obviously these need the deployment descriptors, but I'm not sure in what form yet. /** * configure the supplied GBeanData to implement the POJO web service described in the deployment descriptor. * The GBeanData will be for a ServletHolder like gbean that is adapted to holding a ws stack that talks to a * POJO web service. The web deployer is responsible for filling in the standard servlet info such as init params. * @param targetGBean * @param moduleFile * @param portInfo * @param seiClassName * @throws DeploymentException */ void configurePOJO(GBeanData targetGBean, JarFile moduleFile, Object portInfo, String seiClassName, ClassLoader classLoader) throws DeploymentException; /** * configure the supplied EJBContainer gbeandata to implement the ejb web service described in the deployment descriptor * N.B. this method is a complete guess and should be replaced by something useable right away! * @param targetGBean * @param moduleFile * @param classLoader * @throws DeploymentException */ void configureEJB(GBeanData targetGBean, JarFile moduleFile, Object portInfo, ClassLoader classLoader) throws DeploymentException; }