Klasse ConfigurationServiceFactory<S extends LogConfigurator>

java.lang.Object
org.apache.sling.commons.log.logback.internal.config.ConfigurationServiceFactory<S>
Typparameter:
S - the type of LogConfigurator provided by the factory
Alle implementierten Schnittstellen:
org.osgi.framework.ServiceFactory<S>

public class ConfigurationServiceFactory<S extends LogConfigurator> extends Object implements org.osgi.framework.ServiceFactory<S>
Factory of logging configuration services
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    ConfigurationServiceFactory(@NotNull org.apache.sling.commons.log.logback.internal.LogConfigManager mgr, @NotNull Supplier<S> svcSupplier)
    Constructor
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    getService(@NotNull org.osgi.framework.Bundle bundle, @NotNull org.osgi.framework.ServiceRegistration<S> registration)
    Get or create the service for the supplied registration.
    void
    ungetService(@NotNull org.osgi.framework.Bundle bundle, @NotNull org.osgi.framework.ServiceRegistration<S> registration, S svc)
    Unget the service for the supplied registration.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • ConfigurationServiceFactory

      public ConfigurationServiceFactory(@NotNull @NotNull org.apache.sling.commons.log.logback.internal.LogConfigManager mgr, @NotNull @NotNull Supplier<S> svcSupplier)
      Constructor
      Parameter:
      mgr - the log configuration manager
      svcSupplier - the supplier that creates the service instance
  • Methodendetails

    • getService

      @NotNull public S getService(@NotNull @NotNull org.osgi.framework.Bundle bundle, @NotNull @NotNull org.osgi.framework.ServiceRegistration<S> registration)
      Get or create the service for the supplied registration. The useCount is incremented for each call.
      Angegeben von:
      getService in Schnittstelle org.osgi.framework.ServiceFactory<S extends LogConfigurator>
      Gibt zurück:
      the service for the registration
    • ungetService

      public void ungetService(@NotNull @NotNull org.osgi.framework.Bundle bundle, @NotNull @NotNull org.osgi.framework.ServiceRegistration<S> registration, @NotNull S svc)
      Unget the service for the supplied registration. This decrements the useCount and if that reaches zero then the service object is disposed
      Angegeben von:
      ungetService in Schnittstelle org.osgi.framework.ServiceFactory<S extends LogConfigurator>