Class WriterLogWriterProvider
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.logging.WriterLogWriterProvider
-
- All Implemented Interfaces:
LogWriterProvider
public class WriterLogWriterProvider extends Object implements LogWriterProvider
LogWriterProvider
instance which providesWriterLogWriter
s.
-
-
Constructor Summary
Constructors Constructor Description WriterLogWriterProvider(Writer log)
Creates a new WriterLogWriterProvider based on the given writer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogWriter
getLogWriter(Batch batch)
Returns aWriterLogWriter
if the logger forbatch.getClass()
has debug level enabled.LogWriter
getLogWriter(IdFactory idFactory)
Returns aWriterLogWriter
if the logger foridFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(NameFactory nameFactory)
Returns aWriterLogWriter
if the logger fornameFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(PathFactory pathFactory)
Returns aWriterLogWriter
if the logger forpathFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(QValueFactory valueFactory)
Returns aWriterLogWriter
if the logger forvalueFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(RepositoryService service)
Returns aWriterLogWriter
if the logger forservice.getClass()
has debug level enabled.LogWriter
getLogWriter(SessionInfo sessionInfo)
Returns aWriterLogWriter
if the logger forsessionInfo.getClass()
has debug level enabled.
-
-
-
Constructor Detail
-
WriterLogWriterProvider
public WriterLogWriterProvider(Writer log)
Creates a new WriterLogWriterProvider based on the given writer- Parameters:
log
- the writer
-
-
Method Detail
-
getLogWriter
public LogWriter getLogWriter(RepositoryService service)
Returns aWriterLogWriter
if the logger forservice.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
service
.
-
getLogWriter
public LogWriter getLogWriter(NameFactory nameFactory)
Returns aWriterLogWriter
if the logger fornameFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
nameFactory
.
-
getLogWriter
public LogWriter getLogWriter(PathFactory pathFactory)
Returns aWriterLogWriter
if the logger forpathFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
pathFactory
.
-
getLogWriter
public LogWriter getLogWriter(IdFactory idFactory)
Returns aWriterLogWriter
if the logger foridFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
idFactory
.
-
getLogWriter
public LogWriter getLogWriter(QValueFactory valueFactory)
Returns aWriterLogWriter
if the logger forvalueFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
qValueFactory
.
-
getLogWriter
public LogWriter getLogWriter(SessionInfo sessionInfo)
Returns aWriterLogWriter
if the logger forsessionInfo.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
sessionInfo
.
-
getLogWriter
public LogWriter getLogWriter(Batch batch)
Returns aWriterLogWriter
if the logger forbatch.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
batch
.
-
-