public interface ExtensionContext extends LauncherPrepareContext, LauncherRunContext
Modifier and Type | Method and Description |
---|---|
void |
addBundle(Integer startLevel,
URL file)
Add a bundle to be installed by the launcher.
|
void |
addConfiguration(String pid,
String factoryPid,
Dictionary<String,Object> properties)
Add a configuration to be installed by the launcher
|
void |
addFrameworkProperty(String key,
String value)
Add a framework property to be set by the launcher.
|
void |
addInstallableArtifact(URL file)
Add an artifact to be installed by the launcher
|
org.apache.sling.feature.Feature |
getFeature(org.apache.sling.feature.ArtifactId artifact)
Return the feature object for a given Artifact ID.
|
addAppJar, getArtifactFile, getLogger
getBundleMap, getConfigurations, getFrameworkProperties, getInstallableArtifacts, getLogger
void addBundle(Integer startLevel, URL file)
startLevel
- The start level for the bundle.file
- The file with the bundle.void addInstallableArtifact(URL file)
file
- The filevoid addConfiguration(String pid, String factoryPid, Dictionary<String,Object> properties)
pid
- The pidfactoryPid
- The factory pidproperties
- The propertisvoid addFrameworkProperty(String key, String value)
key
- The key for the property.value
- The value for the property.org.apache.sling.feature.Feature getFeature(org.apache.sling.feature.ArtifactId artifact) throws IOException
artifact
- The artifact ID for the feature.IOException
- If the artifact can be found, but creating a Feature
Model out of it causes an exception.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.