protected void activate()

in src/main/java/org/apache/sling/scripting/sightly/impl/engine/SightlyEngineConfiguration.java [115:144]


    protected void activate(Configuration configuration) {
        InputStream ins = null;
        try {
            ins = getClass().getResourceAsStream("/META-INF/MANIFEST.MF");
            if (ins != null) {
                Manifest manifest = new Manifest(ins);
                Attributes attrs = manifest.getMainAttributes();
                String version = attrs.getValue("ScriptEngine-Version");
                if (version != null) {
                    engineVersion = version;
                }
                String symbolicName = attrs.getValue("Bundle-SymbolicName");
                if (StringUtils.isNotEmpty(symbolicName)) {
                    bundleSymbolicName = symbolicName;
                }
            }
        } catch (IOException ioe) {
        } finally {
            if (ins != null) {
                try {
                    ins.close();
                } catch (IOException ignore) {
                }
            }
        }
        keepGenerated = configuration.keepGenerated();
        allowedExpressionOptions = new HashSet<>(Arrays.asList(configuration.allowedExpressionOptions()));
        legacyBooleanCasting = configuration.legacyBooleanCasting();
        scriptResolutionCacheSize = configuration.scriptResolutionCacheSize();
    }