|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.util.LogWriterFinder
public class LogWriterFinder
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.
Constructor Summary | |
---|---|
LogWriterFinder(String path)
Builds a LogWriterFinder that will look for the mappings between LogWriter names and classes in the directory "path". |
Method Summary | |
---|---|
protected Properties |
doFindLogWriterProperties(String logWriterName)
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. |
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 Detail |
---|
public LogWriterFinder(String path)
path
- The directory where the files that map log writer names to
LogWriter classes are.Method Detail |
---|
public LogWriter newInstance(String logWriterName) throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException
logWriterName
- a log writer name (for example "default", or "custom").
IllegalAccessException
InstantiationException
IOException
ClassNotFoundException
protected Properties doFindLogWriterProperties(String logWriterName) throws IOException
logWriterName
- a log writer name.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |