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,
URL 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(URL 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<URL>> |
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<URL> |
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, URL file)
startLevel
- The start levelfile
- The url to the bundle filepublic void addInstallableArtifact(URL file)
file
- The url to the filepublic void addConfiguration(String pid, String factoryPid, Dictionary<String,Object> properties)
pid
- The pidfactoryPid
- The factory pidproperties
- The propertispublic Map<String,String> getFrameworkProperties()
LauncherRunContext
getFrameworkProperties
in interface LauncherRunContext
LauncherRunContext.getFrameworkProperties()
public Map<Integer,List<URL>> getBundleMap()
LauncherRunContext
getBundleMap
in interface LauncherRunContext
LauncherRunContext.getBundleMap()
public List<Object[]> getConfigurations()
LauncherRunContext
null
getConfigurations
in interface LauncherRunContext
LauncherRunContext.getConfigurations()
public List<URL> getInstallableArtifacts()
LauncherRunContext
getInstallableArtifacts
in interface LauncherRunContext
LauncherRunContext.getInstallableArtifacts()
public void clear()
public void setLogger(org.slf4j.Logger l)
public org.slf4j.Logger getLogger()
LauncherRunContext
getLogger
in interface LauncherRunContext
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.