Class SlingPostDeployMethod
java.lang.Object
org.apache.sling.maven.bundlesupport.deploy.method.SlingPostDeployMethod
- All Implemented Interfaces:
DeployMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeploy(URI targetURL, File file, String bundleSymbolicName, DeployContext context) Deploy/install a bundle on a Sling instance.voidundeploy(URI targetURL, String bundleName, DeployContext context) Undeploy/uninstall a bundle on a Sling instance.
-
Constructor Details
-
SlingPostDeployMethod
public SlingPostDeployMethod()
-
-
Method Details
-
deploy
public void deploy(URI targetURL, File file, String bundleSymbolicName, DeployContext context) throws IOException Description copied from interface:DeployMethodDeploy/install a bundle on a Sling instance.- Specified by:
deployin interfaceDeployMethod- Parameters:
targetURL- Target URLfile- Bundle filebundleSymbolicName- Bundle symbolic namecontext- Deploy context parameters- Throws:
IOException- in case of failure
-
undeploy
Description copied from interface:DeployMethodUndeploy/uninstall a bundle on a Sling instance.- Specified by:
undeployin interfaceDeployMethod- Parameters:
targetURL- Target URLbundleName- Bundle symbolic name or file name (for all methods except forFelixPostDeployMethod)context- Deploy context parameters- Throws:
IOException- in case of failure
-