Example usage for org.apache.commons.transaction.file FileResourceManager getLogger

List of usage examples for org.apache.commons.transaction.file FileResourceManager getLogger

Introduction

In this page you can find the example usage for org.apache.commons.transaction.file FileResourceManager getLogger.

Prototype

public LoggerFacade getLogger() 

Source Link

Document

Gets the logger used by this resource manager.

Usage

From source file:org.apache.slide.store.txfile.XMLResourceDescriptor.java

/**
 * Creates an XML descriptor resource./* w w  w  . j a va 2s  .  c  om*/
 *
 * @param uri uri of the resource
 * @param store store to use for error reporting
 * @param rm resource manager to load / store this descriptor from / to
 * @param txId identifier for the transaction in which the descriptor is to be managed
 * @param characterEncoding charcter enconding used to store this descriptor in XML
 * @throws ServiceAccessException if anything goes wrong at system level
 */
public XMLResourceDescriptor(Uri uri, TxXMLFileDescriptorsStore store, FileResourceManager rm, Object txId,
        String characterEncoding) throws ServiceAccessException {

    super(uri, txId, characterEncoding);

    logger = rm.getLogger().createLogger(XMLResourceDescriptor.class.getName());

    this.rm = rm;
    this.store = store;

    this.loadPath = uri.toString() + PATH_EXTENSION;
}