Class JULConfigurator
java.lang.Object
io.jstach.rainbowgum.jul.JULConfigurator
- All Implemented Interfaces:
RainbowGumServiceProvider, RainbowGumServiceProvider.Configurator, AutoCloseable
@ServiceProvider(RainbowGumServiceProvider.class)
public final class JULConfigurator
extends Object
implements RainbowGumServiceProvider.Configurator, AutoCloseable
Will install the JUL handler if the
java.logging module is available and
is not alreadyi installed.-
Nested Class Summary
Nested classes/interfaces inherited from interface RainbowGumServiceProvider
RainbowGumServiceProvider.Configurator, RainbowGumServiceProvider.Pass, RainbowGumServiceProvider.PropertiesProvider, RainbowGumServiceProvider.RainbowGumEagerLoad, RainbowGumServiceProvider.RainbowGumProviderModifier and TypeInterfaceDescriptionstatic interfaceCalled afterLogConfighas been loaded to do various custom initialization like registeringLogOutput.OutputProviders.static enumProviders sometimes need multiple passes to support dependencies without using true dependency injection.static interfaceProvides properties and or register services.static interfaceThis is a marker interface that indicates that a facade implementation will do the eager loading of RainbowGum.static interfaceImplement to create a custom RainbowGum. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf true will not install the JUL handler.static final StringIf true will not set the root loggers level to whatever the curreint rainbow gums global level default is.Fields inherited from interface RainbowGumServiceProvider
PASSESModifier and TypeFieldDescriptionstatic final intThe default amount of passes made to resolve registrators or configurators.Fields inherited from interface RainbowGumServiceProvider.Configurator
CONFIGURATOR_PASSESModifier and TypeFieldDescriptionstatic final intThe default amount of passes made to resolve configurators. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanconfigure(LogConfig config, RainbowGumServiceProvider.Pass pass) Do ad-hoc initialization before RainbowGum is fully loaded.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RainbowGumServiceProvider.Configurator
priority
-
Field Details
-
JUL_DISABLE_PROPERTY
-
JUL_LEVEL_DISABLE_PROPERTY
If true will not set the root loggers level to whatever the curreint rainbow gums global level default is.- See Also:
-
-
Constructor Details
-
JULConfigurator
public JULConfigurator()For service laoder.
-
-
Method Details
-
configure
Description copied from interface:RainbowGumServiceProvider.ConfiguratorDo ad-hoc initialization before RainbowGum is fully loaded.- Specified by:
configurein interfaceRainbowGumServiceProvider.Configurator- Parameters:
config- config.pass- info on what pass this is.- Returns:
trueif all dependencies were found.
-
close
- Specified by:
closein interfaceAutoCloseable
-