com.sun.grizzly.http.deployer
Class FromURIDeployer<V extends Deployable,T extends DeploymentConfiguration>
java.lang.Object
com.sun.grizzly.http.deployer.Deployer<V,T>
com.sun.grizzly.http.deployer.FromURIDeployer<V,T>
- Type Parameters:
V
- Type of object deployed by this deployer.T
- Type of deployer configuration.
- Direct Known Subclasses:
- WarDeployer
public abstract class FromURIDeployer<V extends Deployable,T extends DeploymentConfiguration>
- extends Deployer<V,T>
Deployer abstraction supporting deployment from URI
.
- Since:
- Sep 18, 2009
- Author:
- Hubert Iwaniuk
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FromURIDeployer
public FromURIDeployer()
deploy
public final DeploymentID deploy(GrizzlyWebServer gws,
URI deployFrom,
T configuration)
throws DeployException
- Deploy deployable to gws.
- Parameters:
gws
- Grizzly to deploy to.deployFrom
- URI ofr deployable to be deployed.configuration
- Configuration of deployment.
- Returns:
- Deployment identification.
- Throws:
DeployException
- Error in deployment.
fromURI
protected abstract V fromURI(URI uri,
T configuration)
throws DeployException
- Create object to deploy from uri.
- Parameters:
uri
- of deployable object.configuration
- Configuration of deployment.
- Returns:
- Deployable object.
- Throws:
DeployException
- If loading Deployable from uri failed.
Copyright © 2012 Oracle Corporation. All Rights Reserved.