Class FelixPostDeployMethod
java.lang.Object
org.apache.sling.maven.bundlesupport.deploy.method.FelixPostDeployMethod
- All Implemented Interfaces:
DeployMethod
Un-/Installs bundles via the
ReST service provided by the Felix Web Console
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deploy
(URI targetURL, File file, String bundleSymbolicName, DeployContext context) Deploy/install a bundle on a Sling instance.void
undeploy
(URI targetURL, String bundleSymbolicName, DeployContext context) Undeploy/uninstall a bundle on a Sling instance.
-
Constructor Details
-
FelixPostDeployMethod
public FelixPostDeployMethod()
-
-
Method Details
-
deploy
public void deploy(URI targetURL, File file, String bundleSymbolicName, DeployContext context) throws IOException Description copied from interface:DeployMethod
Deploy/install a bundle on a Sling instance.- Specified by:
deploy
in interfaceDeployMethod
- Parameters:
targetURL
- Target URLfile
- Bundle filebundleSymbolicName
- Bundle symbolic namecontext
- Deploy context parameters- Throws:
IOException
- in case of failure
-
undeploy
public void undeploy(URI targetURL, String bundleSymbolicName, DeployContext context) throws IOException Description copied from interface:DeployMethod
Undeploy/uninstall a bundle on a Sling instance.- Specified by:
undeploy
in interfaceDeployMethod
- Parameters:
targetURL
- Target URLbundleSymbolicName
- Bundle symbolic name or file name (for all methods except forFelixPostDeployMethod
)context
- Deploy context parameters- Throws:
IOException
- in case of failure
-