Class FeatureProcessor


  • public class FeatureProcessor
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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
    • Constructor Detail

      • FeatureProcessor

        public FeatureProcessor()
    • 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 IOException
        Initialize the launcher Read the features and prepare the application
        Parameters:
        config - The current configuration
        artifactManager - The artifact manager
        loadedFeatures - 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 context
        config - The launcher configuration
        app - The merged feature to launch
        loadedFeatures - 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