public Feature getRuntimeFeature()

in src/main/java/org/apache/sling/feature/r2f/impl/RuntimeEnvironment2FeatureModelService.java [223:241]


    public Feature getRuntimeFeature() {
        Feature launch2RunningUpgradingFeature = getLaunch2RunningUpgradingFeature();
        Prototype prototype = launch2RunningUpgradingFeature.getPrototype();

        // if there are no differences, no need to assemble the new Feature, it is a vanilla Feature

        if (launch2RunningUpgradingFeature.getBundles().isEmpty()
                && launch2RunningUpgradingFeature.getConfigurations().isEmpty()
                && prototype.getBundleRemovals().isEmpty()
                && prototype.getConfigurationRemovals().isEmpty()) {
            return launchFeature;
        }

        ArtifactId runtimeId = newId(RUNTIME_CLASSIFIER);

        BuilderContext context = new BuilderContext(this);

        return assemble(runtimeId, context, launch2RunningUpgradingFeature);
    }