Top Description Fields Constructors Methods
org.apache.commons.logging

public Class LogFactoryService

extends LogFactory
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Map, java.util.concurrent.ConcurrentHashMap

Deprecated

since it is only meant to be used in the above-mentioned fallback scenario

A minimal subclass of the standard Apache Commons Logging's LogFactory class, overriding the abstract getInstance lookup methods. This is just applied in case of the standard commons-logging jar accidentally ending up on the classpath, with the standard LogFactory class performing its META-INF service discovery. This implementation simply delegates to Spring's common Log factory methods.
Author
Juergen Hoeller
Since
5.1

Field Summary

Modifier and TypeField and Description
private final Map<String, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
public String[]
public Log
getInstance(Class<?>
containing Class from which a log name will be derived
clazz
)

Overrides org.apache.commons.logging.LogFactory.getInstance.

Convenience method to return a named logger.

public Log
getInstance(String
logical name of the Log instance to be returned
name
)

Overrides org.apache.commons.logging.LogFactory.getInstance.

Convenience method to return a named logger.

public void
public void
public void
Inherited from org.apache.commons.logging.LogFactory:
getFactorygetLoggetLogobjectIdreleasereleaseAll

Field Detail

attributesback to summary
private final Map<String, Object> attributes

Constructor Detail

LogFactoryServiceback to summary
public LogFactoryService()

Method Detail

getAttributeback to summary
public Object getAttribute(String name)

Implements abstract org.apache.commons.logging.LogFactory.getAttribute.

Annotations
@Override
getAttributeNamesback to summary
public String[] getAttributeNames()

Implements abstract org.apache.commons.logging.LogFactory.getAttributeNames.

Annotations
@Override
getInstanceback to summary
public Log getInstance(Class<?> clazz)

Overrides org.apache.commons.logging.LogFactory.getInstance.

Doc from org.apache.commons.logging.LogFactory.getInstance.

Convenience method to return a named logger.

This variant just dispatches straight to getLog(Class).

Parameters
clazz:Class<?>

containing Class from which a log name will be derived

Annotations
@Override
getInstanceback to summary
public Log getInstance(String name)

Overrides org.apache.commons.logging.LogFactory.getInstance.

Doc from org.apache.commons.logging.LogFactory.getInstance.

Convenience method to return a named logger.

This variant just dispatches straight to getLog(String).

Parameters
name:String

logical name of the Log instance to be returned

Annotations
@Override
releaseback to summary
public void release()

Implements abstract org.apache.commons.logging.LogFactory.release.

Annotations
@Override
removeAttributeback to summary
public void removeAttribute(String name)

Implements abstract org.apache.commons.logging.LogFactory.removeAttribute.

Annotations
@Override
setAttributeback to summary
public void setAttribute(String name, Object value)

Implements abstract org.apache.commons.logging.LogFactory.setAttribute.

Annotations
@Override