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