public static void initPlugin()

in src/main/java/org/apache/sling/commons/threads/impl/WebConsolePrinter.java [40:53]


    public static void initPlugin(final BundleContext bundleContext,
            final DefaultThreadPoolManager dtpm) {
        final WebConsolePrinter propertiesPrinter = new WebConsolePrinter(dtpm);
        final Dictionary<String, String> props = new Hashtable<String, String>();
        props.put(Constants.SERVICE_DESCRIPTION,
            "Apache Sling Thread Pool Configuration Printer");
        props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
        props.put("felix.webconsole.label", "slingthreadpools");
        props.put("felix.webconsole.title", "Sling Thread Pools");
        props.put("felix.webconsole.configprinter.modes", "always");

        plugin = bundleContext.registerService(WebConsolePrinter.class.getName(),
                                               propertiesPrinter, props);
    }