You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2004/06/30 15:08:25 UTC
cvs commit: ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/gbeans JARDeployable.java
hemapani 2004/06/30 06:08:25
Added: contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/gbeans
JARDeployable.java
Log:
add geronimo style JAR deployer
Revision Changes Path
1.1 ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/parsers/gbeans/JARDeployable.java
Index: JARDeployable.java
===================================================================
/*
* Copyright 2001-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.ews.ws4j2ee.parsers.gbeans;
import java.net.URL;
import java.net.URLClassLoader;
import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
import javax.enterprise.deploy.shared.ModuleType;
import org.apache.geronimo.deployment.tools.loader.AbstractDeployable;
/**
* @author Administrator
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class JARDeployable extends AbstractDeployable {
private final ClassLoader webLoader;
public JARDeployable(URL moduleURL) throws DDBeanCreateException {
super(ModuleType.WAR, moduleURL, "META-INF/ejb-jar.xml");
ClassLoader parent = super.getModuleLoader();
webLoader = new URLClassLoader(new URL[]{moduleURL}, parent);
}
protected ClassLoader getModuleLoader() {
return webLoader;
}
}