com.sun.enterprise.admin.cli.embeddable
Class DeployerImpl

java.lang.Object
  extended by com.sun.enterprise.admin.cli.embeddable.DeployerImpl
All Implemented Interfaces:
Deployer

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class DeployerImpl
extends Object
implements Deployer

This is an implementation of Deployer. Unlike the other EmbeddedDeployer, this deployer uses admin command execution framework to execute the underlying command, as a result we don't by-pass things like command replication code.

Author:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
DeployerImpl()
           
 
Method Summary
 String deploy(File file, String... params)
           
 String deploy(InputStream is, String... params)
           
 String deploy(URI archive, String... params)
           
 Collection<String> getDeployedApplications()
           
 void undeploy(String appName, String... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployerImpl

public DeployerImpl()
Method Detail

deploy

public String deploy(URI archive,
                     String... params)
              throws GlassFishException
Specified by:
deploy in interface Deployer
Throws:
GlassFishException

deploy

public String deploy(File file,
                     String... params)
              throws GlassFishException
Specified by:
deploy in interface Deployer
Throws:
GlassFishException

deploy

public String deploy(InputStream is,
                     String... params)
              throws GlassFishException
Specified by:
deploy in interface Deployer
Throws:
GlassFishException

undeploy

public void undeploy(String appName,
                     String... params)
              throws GlassFishException
Specified by:
undeploy in interface Deployer
Throws:
GlassFishException

getDeployedApplications

public Collection<String> getDeployedApplications()
                                           throws GlassFishException
Specified by:
getDeployedApplications in interface Deployer
Throws:
GlassFishException


Copyright © 2012. All Rights Reserved.