public static class LogParserFactory.DefaultLogParserFactory extends Object implements LogParserFactory
LogParserFactory.DefaultLogParserFactory
Constructor and Description |
---|
DefaultLogParserFactory() |
Modifier and Type | Method and Description |
---|---|
LogParser |
createParserForFormat(String format,
Class<?> clazz)
Creates an instance of the LogParser Implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDefaultInstance
public LogParser createParserForFormat(String format, Class<?> clazz) throws LogLineFormatException, IllegalClassException
LogParserFactory
createParserForFormat
in interface LogParserFactory
format
- a String with the formatting tokens for describing the expected log line format to
match.clazz
- a class that has implemented the LogEntry interface and has fields mapped with the
LogElementMapping annotations matching the tokens in the format param.LogLineFormatException
- when the formatting tokens are invalid or cannot be used.IllegalClassException
- when the class object cannot be instanced, or reflected, or when the
LogElementMapping annotations are missing.Copyright © 2017 Jason "JRSofty" Reed. All rights reserved.