net.sf.appinfo.formatter
Class AbstractApplicationInfoFormatter

java.lang.Object
  extended by 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
           
 
Constructor Summary
AbstractApplicationInfoFormatter()
           
 
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
 
Methods inherited from interface net.sf.appinfo.formatter.ApplicationInfoFormatter
getInfo
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

AbstractApplicationInfoFormatter

public AbstractApplicationInfoFormatter()
Method Detail

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.