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
KonstruktorenKonstruktorBeschreibungConfigurationServiceFactory
(@NotNull org.apache.sling.commons.log.logback.internal.LogConfigManager mgr, @NotNull Supplier<S> svcSupplier) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetService
(@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.
-
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 managersvcSupplier
- 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 Schnittstelleorg.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 Schnittstelleorg.osgi.framework.ServiceFactory<S extends LogConfigurator>
-