private void activate()

in src/main/java/org/apache/sling/models/jacksonexporter/impl/ConfigurableSerializationModuleProvider.java [67:92]


    private void activate(Config config) {
        this.moduleInstance = new SimpleModule();

        List<String> disabled = Arrays.asList(config.disable_serialization());
        List<String> logging = Arrays.asList(config.enable_warn_logging());

        // Currently only the Sling ResourceResolver is supported
        for (String type : disabled) {
            if (RESOURCERESOLVER.equals(type)) {
                moduleInstance.setMixInAnnotation(ResourceResolver.class, IgnoringResourceResolverMixin.class);
                ignoringRR = true;
            } else {
                LOG.warn("Support to disable the serialization of type {} is not implemented", type);
            }
        }

        for (String type : logging) {
            if (RESOURCERESOLVER.equals(type)) {
                if (!ignoringRR) {
                    moduleInstance.setMixInAnnotation(ResourceResolver.class, WarningResourceResolverMixin.class);
                }
            } else {
                LOG.warn("Support to log any serialization of type {} is not implemented", type);
            }
        }
    }