public class LogWriterFinder
extends java.lang.Object
| Constructor and Description |
|---|
LogWriterFinder(java.lang.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 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").
|
public LogWriterFinder(java.lang.String path)
path - The directory where the files that map log writer names to
LogWriter classes are.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.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected java.util.Properties doFindLogWriterProperties(java.lang.String logWriterName)
throws java.io.IOException
logWriterName - a log writer name.java.io.IOExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.