LoggerContextFactory.
| Modifier and Type | Field and Description |
|---|---|
| public static final SimpleLoggerContextFactory | INSTANCE
Singleton instance. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LoggerContext | getContext(final String
The fully qualified class name of the caller. fqcn, final ClassLoader The ClassLoader to use or null. loader, final Object An external context (such as a ServletContext) to be associated with the LoggerContext. externalContext, final boolean If true returns the current Context, if false returns the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext)Implements org. Creates a |
| public LoggerContext | getContext(final String
The fully qualified class name of the caller. fqcn, final ClassLoader The ClassLoader to use or null. loader, final Object An external context (such as a ServletContext) to be associated with the LoggerContext. externalContext, final boolean If true returns the current Context, if false returns the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext, final URI The location of the configuration for the LoggerContext. configLocation, final String The name of the context or null. name)Implements org. Creates a |
| public boolean | isClassLoaderDependent()
Overrides default org. Determines whether or not this factory and perhaps the underlying ContextSelector behavior depend on the callers classloader. |
| public void | removeContext(final LoggerContext
The context to remove. removeContext)Implements org. Removes knowledge of a LoggerContext. |
| INSTANCE | back to summary |
|---|---|
| public static final SimpleLoggerContextFactory INSTANCE Singleton instance. | |
| SimpleLoggerContextFactory | back to summary |
|---|---|
| public SimpleLoggerContextFactory() | |
| getContext | back to summary |
|---|---|
| public LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext, final boolean currentContext) Implements org. Doc from org. Creates a
| |
| getContext | back to summary |
|---|---|
| public LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext, final boolean currentContext, final URI configLocation, final String name) Implements org. Doc from org. Creates a
| |
| isClassLoaderDependent | back to summary |
|---|---|
| public boolean isClassLoaderDependent() Overrides default org. Doc from org. Determines whether or not this factory and perhaps the underlying
ContextSelector behavior depend on the callers classloader.
This method should be overridden by implementations, however a default method is provided which always
returns
| |
| removeContext | back to summary |
|---|---|
| public void removeContext(final LoggerContext removeContext) Implements org. Doc from org. Removes knowledge of a LoggerContext.
| |