net.sf.appinfo.formatter
Class AbstractApplicationInfoFormatter
java.lang.Object
net.sf.appinfo.formatter.AbstractApplicationInfoFormatter
- All Implemented Interfaces:
- ApplicationInfoFormatter
- Direct Known Subclasses:
- BasicApplicationInfoFormatter
public abstract class AbstractApplicationInfoFormatter
- extends Object
- implements ApplicationInfoFormatter
Abstract ApplicationInfoFormatter implementation with common functionality for all formatters.
- Author:
- Marcin ZajÄ…czkowski, 2010-10-14
Field Summary |
protected org.slf4j.Logger |
log
|
Method Summary |
void |
printInfo()
Prints application info in format given by getInfo() to the log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
AbstractApplicationInfoFormatter
public AbstractApplicationInfoFormatter()
printInfo
public void printInfo()
- Prints application info in format given by getInfo() to the log.
Could be used after formatter bean creation (in PostConstruct/init) to print application version to the log.
- Specified by:
printInfo
in interface ApplicationInfoFormatter
Copyright © 2010-2011. All Rights Reserved.