public class Installation extends Object implements LauncherRunContext
| Constructor and Description |
|---|
Installation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAppJar(URL jar)
Add an application jar.
|
void |
addBundle(Integer startLevel,
File file)
Add a bundle with the given start level
|
void |
addConfiguration(String pid,
String factoryPid,
Dictionary<String,Object> properties)
Add a configuration
|
void |
addFrameworkProperty(String key,
String value) |
void |
addInstallableArtifact(File file)
Add an artifact to be installed by the installer
|
void |
clear()
Clear all in-memory objects
|
List<URL> |
getAppJars()
Get the list of application jars.
|
Map<Integer,List<File>> |
getBundleMap()
Bundle map, key is the start level, value is a list of files.
|
List<Object[]> |
getConfigurations()
List of configurations.
|
Map<String,String> |
getFrameworkProperties()
Map of framework properties to be set when the framework is created.
|
List<File> |
getInstallableArtifacts()
List of installable artifacts.
|
org.slf4j.Logger |
getLogger()
Get the central logger
|
void |
setLogger(org.slf4j.Logger l) |
public void addAppJar(URL jar)
jar - The application jarpublic List<URL> getAppJars()
public void addBundle(Integer startLevel, File file)
startLevel - The start levelfile - The bundle filepublic void addInstallableArtifact(File file)
file - The filepublic void addConfiguration(String pid, String factoryPid, Dictionary<String,Object> properties)
pid - The pidfactoryPid - The factory pidproperties - The propertispublic Map<String,String> getFrameworkProperties()
LauncherRunContextgetFrameworkProperties in interface LauncherRunContextLauncherRunContext.getFrameworkProperties()public Map<Integer,List<File>> getBundleMap()
LauncherRunContextgetBundleMap in interface LauncherRunContextLauncherRunContext.getBundleMap()public List<Object[]> getConfigurations()
LauncherRunContextnull
getConfigurations in interface LauncherRunContextLauncherRunContext.getConfigurations()public List<File> getInstallableArtifacts()
LauncherRunContextgetInstallableArtifacts in interface LauncherRunContextLauncherRunContext.getInstallableArtifacts()public void clear()
public void setLogger(org.slf4j.Logger l)
public org.slf4j.Logger getLogger()
LauncherRunContextgetLogger in interface LauncherRunContextCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.