org.apache.creadur.whisker.out.velocity
public class VelocityReports extends Object implements org.apache.velocity.runtime.log.LogChute
Constructor and Description |
---|
VelocityReports(ResultWriterFactory writerFactory,
org.apache.commons.logging.Log log)
Constructs a reporter using Apache Velocity.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(Descriptor work,
Configuration configuration)
Reports on work.
|
void |
generateTemplate(Collection<Directory> withBase)
Generates template.
|
void |
init(org.apache.velocity.runtime.RuntimeServices services)
Unused.
|
boolean |
isLevelEnabled(int level)
Indicates whether logging is enabled.
|
void |
log(int level,
String message)
Logs a message.
|
void |
log(int level,
String message,
Throwable throwable)
Logs a message from Velocity.
|
void |
report(Collection<Directory> directories)
Generates a directory report.
|
void |
validate(LicenseAnalyst analyst)
Reports on analysis.
|
public VelocityReports(ResultWriterFactory writerFactory, org.apache.commons.logging.Log log)
writerFactory
- not nulllog
- not nullpublic final void init(org.apache.velocity.runtime.RuntimeServices services)
init
in interface org.apache.velocity.runtime.log.LogChute
services
- unusedLogChute.init(RuntimeServices)
public final boolean isLevelEnabled(int level)
isLevelEnabled
in interface org.apache.velocity.runtime.log.LogChute
level
- at this levelLogChute.isLevelEnabled(int)
public final void log(int level, String message)
log
in interface org.apache.velocity.runtime.log.LogChute
level
- at levelmessage
- possibly nullLogChute.log(int, String)
public final void log(int level, String message, Throwable throwable)
log
in interface org.apache.velocity.runtime.log.LogChute
level
- log levelmessage
- possibly nullthrowable
- possibly nullLogChute.log(int, String, Throwable)
public final void generate(Descriptor work, Configuration configuration) throws Exception
work
- not nullconfiguration
- not nullException
- when generation failspublic final void report(Collection<Directory> directories) throws Exception
directories
- not nullException
- when reporting failspublic final void validate(LicenseAnalyst analyst) throws Exception
analyst
- not nullException
- when validation failspublic final void generateTemplate(Collection<Directory> withBase) throws Exception
withBase
- not nullException
- when generation failsCopyright © 2011-2013 Apache Software Foundation. All Rights Reserved.