Class Installation
- java.lang.Object
-
- org.apache.sling.feature.launcher.impl.Installation
-
- All Implemented Interfaces:
LauncherRunContext
public class Installation extends Object implements LauncherRunContext
This class holds the configuration of the launcher.
-
-
Constructor Summary
Constructors Constructor Description Installation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAppJar(URL jar)Add an application jar.voidaddBundle(Integer startLevel, URL file)Add a bundle with the given start levelvoidaddConfiguration(String pid, String factoryPid, Dictionary<String,Object> properties)Add a configurationvoidaddFrameworkProperty(String key, String value)voidaddInstallableArtifact(URL file)Add an artifact to be installed by the installervoidclear()Clear all in-memory objectsList<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.LoggergetLogger()Get the central loggervoidsetLogger(org.slf4j.Logger l)
-
-
-
Method Detail
-
addAppJar
public void addAppJar(URL jar)
Add an application jar.- Parameters:
jar- The application jar
-
getAppJars
public List<URL> getAppJars()
Get the list of application jars.- Returns:
- The list of app jars
-
addBundle
public void addBundle(Integer startLevel, URL file)
Add a bundle with the given start level- Parameters:
startLevel- The start levelfile- The url to the bundle file
-
addInstallableArtifact
public void addInstallableArtifact(URL file)
Add an artifact to be installed by the installer- Parameters:
file- The url to the file
-
addConfiguration
public void addConfiguration(String pid, String factoryPid, Dictionary<String,Object> properties)
Add a configuration- Parameters:
pid- The pidfactoryPid- The factory pidproperties- The propertis
-
getFrameworkProperties
public Map<String,String> getFrameworkProperties()
Description copied from interface:LauncherRunContextMap of framework properties to be set when the framework is created.- Specified by:
getFrameworkPropertiesin interfaceLauncherRunContext- Returns:
- The map with the framework properties.
- See Also:
LauncherRunContext.getFrameworkProperties()
-
getBundleMap
public Map<Integer,List<URL>> getBundleMap()
Description copied from interface:LauncherRunContextBundle map, key is the start level, value is a list of files.- Specified by:
getBundleMapin interfaceLauncherRunContext- Returns:
- The bundle map, might be empty
- See Also:
LauncherRunContext.getBundleMap()
-
getConfigurations
public List<Object[]> getConfigurations()
Description copied from interface:LauncherRunContextList of configurations. The value in each is an object array with three values- The PID
- The factory PID or
null - The dictionary with the properties
- Specified by:
getConfigurationsin interfaceLauncherRunContext- Returns:
- The list, might be empty
- See Also:
LauncherRunContext.getConfigurations()
-
getInstallableArtifacts
public List<URL> getInstallableArtifacts()
Description copied from interface:LauncherRunContextList of installable artifacts.- Specified by:
getInstallableArtifactsin interfaceLauncherRunContext- Returns:
- The list of files. The list might be empty.
- See Also:
LauncherRunContext.getInstallableArtifacts()
-
clear
public void clear()
Clear all in-memory objects
-
setLogger
public void setLogger(org.slf4j.Logger l)
-
getLogger
public org.slf4j.Logger getLogger()
Description copied from interface:LauncherRunContextGet the central logger- Specified by:
getLoggerin interfaceLauncherRunContext- Returns:
- The logger
-
-