protected void activate()

in src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java [428:442]


    protected void activate(final BundleContext context, final Config config) throws LoginException {
        this.defaultLocale = toLocale(config.locale_default());
        this.preloadBundles = config.preload_bundles();
        this.invalidationDelay = config.invalidation_delay();
        this.pathFilter = new PathFilter(config.included_paths(), config.excluded_paths());

        this.resourceBundleRegistry = new ResourceBundleRegistry(context);

        this.locatorPathsTracker = new BundleTracker<>(context, Bundle.ACTIVE, new LocatorPathsTracker(this));
        this.locatorPathsTracker.open();

        if (this.resourceResolverFactory != null) { // this is only null during test execution!
            scheduleReloadBundles(false);
        }
    }