org.objectweb.perseus.fos.api
Interface FosLoggerFactory

All Known Subinterfaces:
FosManager
All 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 Detail

DEBUG

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

See Also:
Constant Field Values

CONNECTION

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

See Also:
Constant Field Values

MANAGEDCONNECTION

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

See Also:
Constant Field Values

XARESOURCE

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

See Also:
Constant Field Values

TXCONTEXT

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

See Also:
Constant Field Values
Method Detail

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.