LoggerContext implementations.
| Modifier and Type | Class and Description |
|---|---|
| public static class | LoggerRegistry.
subtype of T extends ExtendedLogger>ExtendedLoggerGenerates ConcurrentHashMaps for use by the registry to store the Loggers. |
| public static interface | LoggerRegistry.
subtype of T extends ExtendedLogger>ExtendedLoggerInterface to control the data structure used by the registry to store the Loggers. |
| public static class | LoggerRegistry.
subtype of T extends ExtendedLogger>ExtendedLoggerGenerates WeakHashMaps for use by the registry to store the Loggers. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final LoggerRegistry. | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| public T | |
| public T | Returns: The logger with the specified name.The name of the Logger to return. name, final MessageFactory The message factory is used only when creating a logger, subsequent use does not change
the logger but will log a warning if mismatched. messageFactory)Returns an ExtendedLogger. |
| public Collection | |
| public Collection | |
| private Map | |
| public boolean | |
| public boolean | Returns: true if the Logger exists, false otherwise.The Logger name to search for. name, final MessageFactory The message factory to search for. messageFactory)Detects if a Logger with the specified name and MessageFactory exists. |
| public boolean | Returns: true if the Logger exists, false otherwise.The Logger name to search for. name, final Class<? extends MessageFactory> The message factory class to search for. messageFactoryClass)Detects if a Logger with the specified name and MessageFactory type exists. |
| public void |
| DEFAULT_FACTORY_KEY | back to summary |
|---|---|
| private static final String DEFAULT_FACTORY_KEY | |
| factory | back to summary |
|---|---|
| private final LoggerRegistry. | |
| map | back to summary |
|---|---|
| private final Map<String, Map<String, T>> map | |
| LoggerRegistry | back to summary |
|---|---|
| public LoggerRegistry() | |
| LoggerRegistry | back to summary |
|---|---|
| public LoggerRegistry(final LoggerRegistry. | |
| factoryClassKey | back to summary |
|---|---|
| private static String factoryClassKey(final Class<? extends MessageFactory> messageFactoryClass) | |
| factoryKey | back to summary |
|---|---|
| private static String factoryKey(final MessageFactory messageFactory) | |
| getLogger | back to summary |
|---|---|
| public T getLogger(final String name) Returns an ExtendedLogger.
| |
| getLogger | back to summary |
|---|---|
| public T getLogger(final String name, final MessageFactory messageFactory) Returns an ExtendedLogger.
| |
| getLoggers | back to summary |
|---|---|
| public Collection | |
| getLoggers | back to summary |
|---|---|
| public Collection | |
| getOrCreateInnerMap | back to summary |
|---|---|
| private Map | |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(final String name) Detects if a Logger with the specified name exists.
| |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(final String name, final MessageFactory messageFactory) Detects if a Logger with the specified name and MessageFactory exists.
| |
| hasLogger | back to summary |
|---|---|
| public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) Detects if a Logger with the specified name and MessageFactory type exists.
| |
| putIfAbsent | back to summary |
|---|---|
| public void putIfAbsent(final String name, final MessageFactory messageFactory, final T logger) | |
ExtendedLogger
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Map | |
| public void | putIfAbsent(final Map<String, T> innerMap, final String name, final T logger)
Implements org.
|
| ConcurrentMapFactory | back to summary |
|---|---|
| public ConcurrentMapFactory() | |
| createInnerMap | back to summary |
|---|---|
| public Map Implements org.
| |
| createOuterMap | back to summary |
|---|---|
| public Map Implements org.
| |
| putIfAbsent | back to summary |
|---|---|
| public void putIfAbsent(final Map<String, T> innerMap, final String name, final T logger) Implements org.
| |
ExtendedLogger
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Map | |
| public void |
| createInnerMap | back to summary |
|---|---|
| public Map | |
| createOuterMap | back to summary |
|---|---|
| public Map | |
| putIfAbsent | back to summary |
|---|---|
| public void putIfAbsent(Map<String, T> innerMap, String name, T logger) | |
ExtendedLogger
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Map | |
| public void | putIfAbsent(final Map<String, T> innerMap, final String name, final T logger)
Implements org.
|
| WeakMapFactory | back to summary |
|---|---|
| public WeakMapFactory() | |
| createInnerMap | back to summary |
|---|---|
| public Map Implements org.
| |
| createOuterMap | back to summary |
|---|---|
| public Map Implements org.
| |
| putIfAbsent | back to summary |
|---|---|
| public void putIfAbsent(final Map<String, T> innerMap, final String name, final T logger) Implements org.
| |