static ServiceRegistration register()

in src/main/java/org/apache/sling/auth/form/impl/FormLoginModulePlugin.java [69:82]


    static ServiceRegistration<LoginModulePlugin> register(
            final FormAuthenticationHandler authHandler,
            final BundleContext bundleContext) {
        FormLoginModulePlugin plugin = new FormLoginModulePlugin(authHandler);

        Hashtable<String, Object> properties = new Hashtable<>(); // NOSONAR
        properties.put(Constants.SERVICE_DESCRIPTION,
            "LoginModulePlugin Support for FormAuthenticationHandler");
        properties.put(Constants.SERVICE_VENDOR,
            bundleContext.getBundle().getHeaders().get(Constants.BUNDLE_VENDOR));

        return bundleContext.registerService(LoginModulePlugin.class,
            plugin, properties);
    }