| java.lang.Object org.clapper.curn.OutputHandlerFactory
OutputHandlerFactory | public class OutputHandlerFactory (Code) | | This class provides a factory for retrieving a specific
OutputHandler implementation.
See Also: OutputHandler version: $Revision: 7041 $ |
getOutputHandler | public static OutputHandler getOutputHandler(Class> cls) throws CurnException(Code) | | Get an instance of the named OutputHandler class. This
method loads the specified class, verifies that it conforms to the
OutputHandler interface, instantiates it (via its default
constructor), and returns the resulting OutputHandler object.
Parameters: cls - the class for the output handler an OutputHandler object throws: CurnException - Error instantiating class. The exception willcontain the real underlying exception. |
getOutputHandler | public static OutputHandler getOutputHandler(String className) throws CurnException(Code) | | Get an instance of the named OutputHandler class. This
method loads the specified class, verifies that it conforms to the
OutputHandler interface, instantiates it (via its default
constructor), and returns the resulting OutputHandler object.
Parameters: className - the class name an OutputHandler object throws: CurnException - Error instantiating class. The exception willcontain the real underlying exception. |
|
|