Class SlingInitialContentMounter
- java.lang.Object
-
- org.apache.sling.maven.bundlesupport.fsresource.SlingInitialContentMounter
-
public final class SlingInitialContentMounter extends Object
Manages OSGi configurations for File System Resource Provider for Sling-Initial-Content.
-
-
Constructor Summary
Constructors Constructor Description SlingInitialContentMounter(org.apache.maven.plugin.logging.Log log, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder, org.apache.maven.project.MavenProject project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mount(URI consoleTargetUrl, File bundleFile)
Add configurations to a running OSGi instance for initial content.void
unmount(URI consoleTargetUrl)
Remove configurations from a running OSGi instance for initial content.
-
-
-
Constructor Detail
-
SlingInitialContentMounter
public SlingInitialContentMounter(org.apache.maven.plugin.logging.Log log, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder, org.apache.maven.project.MavenProject project)
-
-
Method Detail
-
mount
public void mount(URI consoleTargetUrl, File bundleFile) throws org.apache.maven.plugin.MojoExecutionException
Add configurations to a running OSGi instance for initial content.- Parameters:
consoleTargetUrl
- The web console base urlbundleFile
- The artifact (bundle)- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-
unmount
public void unmount(URI consoleTargetUrl) throws org.apache.maven.plugin.MojoExecutionException
Remove configurations from a running OSGi instance for initial content.- Parameters:
consoleTargetUrl
- The web console base url- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-
-