com.sun.grizzly.http.deployer
Class FromURIDeployer<V extends Deployable,T extends DeploymentConfiguration>

java.lang.Object
  extended by com.sun.grizzly.http.deployer.Deployer<V,T>
      extended by 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

Constructor Summary
FromURIDeployer()
           
 
Method Summary
 DeploymentID deploy(GrizzlyWebServer gws, URI deployFrom, T configuration)
          Deploy deployable to gws.
protected abstract  V fromURI(URI uri, T configuration)
          Create object to deploy from uri.
 
Methods inherited from class com.sun.grizzly.http.deployer.Deployer
convert, deploy, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FromURIDeployer

public FromURIDeployer()
Method Detail

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.