public class LogWriterFinder extends Object
Constructor and Description |
---|
LogWriterFinder(String path)
Builds a LogWriterFinder that will look for the mappings between
LogWriter names and classes in the directory "path".
|
Modifier and Type | Method and Description |
---|---|
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").
|
public LogWriterFinder(String path)
path
- The directory where the files that map log writer names to
LogWriter classes are.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
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.