Class FeatureProcessor
- java.lang.Object
-
- org.apache.sling.feature.launcher.impl.FeatureProcessor
-
public class FeatureProcessor extends Object
-
-
Constructor Summary
Constructors Constructor Description FeatureProcessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.sling.feature.FeaturecreateApplication(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 applicationstatic voidprepareLauncher(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
-
-
-
Method Detail
-
createApplication
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 IOExceptionInitialize the launcher Read the features and prepare the application- Parameters:
config- The current configurationartifactManager- The artifact managerloadedFeatures- This map will be populated with features that were loaded as part of this process- Returns:
- The merged feature representing the application
- Throws:
IOException- when an IO exception occurs during application creation
-
prepareLauncher
public 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
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- Parameters:
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 commandline- Throws:
Exception- when something goes wrong
-
-