org.objectweb.perseus.fos.api

Interface FosLoggerFactory

Known Subinterfaces:
FosManager
Known Implementing Classes:
FosTxContextFactory

public interface FosLoggerFactory

Defines the way to retrieve the logger associated to the different kinds of FOS entities that are traced.

Author:
S. Chassande-Barrioz, P. D???chamboux

Field Summary

static byte
CONNECTION
For Connection entities associated to the FOS.
static boolean
DEBUG
For removing all DEBUG traces from the FOS adapter code, set it to false!!
static byte
MANAGEDCONNECTION
For ManagedConnection entities associated to the FOS.
static byte
TXCONTEXT
For TxContext entities associated to the FOS.
static byte
XARESOURCE
For XAResource entities associated to the FOS.

Method Summary

Logger
getLogger(byte entity, boolean factory)
Gives access to the logger associated to a given kind of entities managed by this FOS adapter, which are further classified into factories or non-factories.
void
setMonologFactory(MonologFactory mf)

Field Details

CONNECTION

public static final byte CONNECTION
For Connection entities associated to the FOS.

Field Value:
1


DEBUG

public static final boolean DEBUG
For removing all DEBUG traces from the FOS adapter code, set it to false!!

Field Value:
true


MANAGEDCONNECTION

public static final byte MANAGEDCONNECTION
For ManagedConnection entities associated to the FOS.

Field Value:
2


TXCONTEXT

public static final byte TXCONTEXT
For TxContext entities associated to the FOS.

Field Value:
8


XARESOURCE

public static final byte XARESOURCE
For XAResource entities associated to the FOS.

Field Value:
4

Method Details

getLogger

public Logger getLogger(byte entity,
                        boolean factory)
Gives access to the logger associated to a given kind of entities managed by this FOS adapter, which are further classified into factories or non-factories.

Parameters:
entity - The kind of entity (see CONNECTION, MANAGEDCONNECTION, XARESOURCE and TXCONTEXT constants defined above).
factory - Specifies if the concerned entity is a factory.

Returns:
The relevant logger.


setMonologFactory

public void setMonologFactory(MonologFactory mf)


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.