public class FeatureProcessor extends Object
Constructor and Description |
---|
FeatureProcessor() |
Modifier and Type | Method and Description |
---|---|
static org.apache.sling.feature.Feature |
createApplication(org.slf4j.Logger logger,
LauncherConfig config,
org.apache.sling.feature.io.artifacts.ArtifactManager artifactManager,
Map<org.apache.sling.feature.ArtifactId,org.apache.sling.feature.Feature> loadedFeatures)
Initialize the launcher
Read the features and prepare the application
|
static void |
prepareLauncher(LauncherPrepareContext ctx,
LauncherConfig config,
org.apache.sling.feature.Feature app,
Map<org.apache.sling.feature.ArtifactId,org.apache.sling.feature.Feature> loadedFeatures)
Prepare the launcher
- add all bundles to the bundle map of the installation object
- add all other artifacts to the install directory (only if startup mode is INSTALL)
- process configurations
|
public static org.apache.sling.feature.Feature createApplication(org.slf4j.Logger logger, LauncherConfig config, org.apache.sling.feature.io.artifacts.ArtifactManager artifactManager, Map<org.apache.sling.feature.ArtifactId,org.apache.sling.feature.Feature> loadedFeatures) throws IOException
config
- The current configurationartifactManager
- The artifact managerloadedFeatures
- This map will be populated with features that were loaded as part of this processIOException
- when an IO exception occurs during application creationpublic static void prepareLauncher(LauncherPrepareContext ctx, LauncherConfig config, org.apache.sling.feature.Feature app, Map<org.apache.sling.feature.ArtifactId,org.apache.sling.feature.Feature> loadedFeatures) throws Exception
ctx
- The launcher prepare contextconfig
- The launcher configurationapp
- The merged feature to launchloadedFeatures
- The features previously loaded by the launcher, this includes features that
were passed in via file:// URLs from the commandlineException
- when something goes wrongCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.