|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.utils.deployment.DeploymentManager
public class DeploymentManager
Manages (un-)deployment of Web Services.
| Method Summary | |
|---|---|
org.codehaus.xfire.service.Service |
deployService(DeploymentPackage depPack)
|
static DeploymentManager |
getInstance()
|
ClassLoader |
getServiceClassLoader(String serviceName)
|
Home |
getServiceHome(String serviceName)
|
Collection<Home> |
getServiceHomes()
|
void |
loadClasses(File serviceJar,
String serviceName,
String iFace,
String impl)
Web Services need to be undeployable at runtime and thus their classes must be removable at runtime. |
void |
registerWSRFService(String serviceName,
Class<?> spec,
Class<? extends Home> impl)
|
void |
releaseAndDeleteJar(String serviceName)
|
boolean |
serviceExists(String serviceName)
Returns true if a service jar exists for the specified name, but hasn't necessarily been deployed (could be, though; call serviceDeployed() to be sure). |
boolean |
serviceIsDeployed(String serviceName)
Returns true if a service with the specified name is already deployed and running. |
void |
setAutomaticDeployment(boolean activate)
|
void |
setServiceClassLoader(String serviceName,
ClassLoader cl)
|
void |
undeployService(String serviceName,
int mode)
|
void |
unregisterService(String serviceName)
To unregister and totally undeploy a Web Service the following prerequisites have to be met: release all references to all its instances release all references to its class objects release all references to its class loader remove the Service object from the XFire Service Registry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DeploymentManager getInstance()
public void setAutomaticDeployment(boolean activate)
throws Exception
Exception
public void undeployService(String serviceName,
int mode)
throws Exception
Exception
public org.codehaus.xfire.service.Service deployService(DeploymentPackage depPack)
throws Exception
Exceptionpublic Home getServiceHome(String serviceName)
public ClassLoader getServiceClassLoader(String serviceName)
public void setServiceClassLoader(String serviceName,
ClassLoader cl)
public void loadClasses(File serviceJar,
String serviceName,
String iFace,
String impl)
throws IOException,
ClassNotFoundException
URLClassLoader instance locks all loaded class files beyond its own lifetime for the duration of the
JVM up-time, all service JARs are copied into a temporary folder that'll be sweeped at the next WSRFLite start-up.
serviceJar - The jar file containing the service classesserviceName - - if null will be determined automatically from serviceJariFace - The fully qualified name of the service interface classimpl - The fully qualified name of the service home/implementation class
IOException
ClassNotFoundException
public void registerWSRFService(String serviceName,
Class<?> spec,
Class<? extends Home> impl)
throws Exception
Exceptionpublic void unregisterService(String serviceName)
public boolean serviceExists(String serviceName)
public boolean serviceIsDeployed(String serviceName)
public Collection<Home> getServiceHomes()
public void releaseAndDeleteJar(String serviceName)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||