Class DeployerImpl
- java.lang.Object
-
- com.sun.enterprise.admin.cli.embeddable.DeployerImpl
-
- All Implemented Interfaces:
org.glassfish.embeddable.Deployer
@Service @PerLookup @ContractsProvided({DeployerImpl.class,org.glassfish.embeddable.Deployer.class}) public class DeployerImpl extends Object implements org.glassfish.embeddable.DeployerThis is an implementation ofDeployer. 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
Constructors Constructor Description DeployerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdeploy(File file, String... params)Stringdeploy(InputStream is, String... params)Stringdeploy(URI archive, String... params)Collection<String>getDeployedApplications()voidundeploy(String appName, String... params)
-
-
-
Method Detail
-
deploy
public String deploy(URI archive, String... params) throws org.glassfish.embeddable.GlassFishException
- Specified by:
deployin interfaceorg.glassfish.embeddable.Deployer- Throws:
org.glassfish.embeddable.GlassFishException
-
deploy
public String deploy(File file, String... params) throws org.glassfish.embeddable.GlassFishException
- Specified by:
deployin interfaceorg.glassfish.embeddable.Deployer- Throws:
org.glassfish.embeddable.GlassFishException
-
deploy
public String deploy(InputStream is, String... params) throws org.glassfish.embeddable.GlassFishException
- Specified by:
deployin interfaceorg.glassfish.embeddable.Deployer- Throws:
org.glassfish.embeddable.GlassFishException
-
undeploy
public void undeploy(String appName, String... params) throws org.glassfish.embeddable.GlassFishException
- Specified by:
undeployin interfaceorg.glassfish.embeddable.Deployer- Throws:
org.glassfish.embeddable.GlassFishException
-
getDeployedApplications
public Collection<String> getDeployedApplications() throws org.glassfish.embeddable.GlassFishException
- Specified by:
getDeployedApplicationsin interfaceorg.glassfish.embeddable.Deployer- Throws:
org.glassfish.embeddable.GlassFishException
-
-