Class LogWriterFinder

java.lang.Object
org.apache.activemq.util.LogWriterFinder

public class LogWriterFinder extends Object
Class used to find a LogWriter implementation, and returning a LogWriter object, taking as argument the name of a log writer. The mapping between the log writer names and the classes implementing LogWriter is specified by the files in the resources/META-INF/services/org/apache/activemq/transport/logwriters directory.
Author:
David Martin Clavo david(dot)martin(dot)clavo(at)gmail.com
  • Constructor Summary

    Constructors
    Constructor
    Description
    Builds a LogWriterFinder that will look for the mappings between LogWriter names and classes in the directory "path".
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Properties
    Given a log writer name, returns a Properties object with a "class" property whose value is a String with the name of the class to be loaded.
    org.apache.activemq.transport.LogWriter
    newInstance(String logWriterName)
    Returns a LogWriter object, given a log writer name (for example "default", or "custom").

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogWriterFinder

      public LogWriterFinder(String path)
      Builds a LogWriterFinder that will look for the mappings between LogWriter names and classes in the directory "path".
      Parameters:
      path - The directory where the files that map log writer names to LogWriter classes are.
  • Method Details