org.apache.felix.ipojo.manipulator.reporter
Class EmptyReporter

java.lang.Object
  extended by org.apache.felix.ipojo.manipulator.reporter.EmptyReporter
All Implemented Interfaces:
Reporter
Direct Known Subclasses:
SystemReporter

public class EmptyReporter
extends java.lang.Object
implements Reporter

An EmptyReporter is the basis implementation for Reporters. It is basically a no-op implementation.

Author:
Felix Project Team

Constructor Summary
EmptyReporter()
           
 
Method Summary
 void error(java.lang.String message, java.lang.Object... args)
          Add a message in the error list.
 java.util.List<java.lang.String> getErrors()
           
protected  java.lang.Object[] getMessageArguments(java.lang.Object... args)
           
protected  java.lang.Throwable getThrowable(java.lang.Object... args)
           
 java.util.List<java.lang.String> getWarnings()
           
 void info(java.lang.String message, java.lang.Object... args)
          Add an informative message It accepts a Throwable as last argument.
 void trace(java.lang.String message, java.lang.Object... args)
          Add aa trace message It accepts a Throwable as last argument.
 void warn(java.lang.String message, java.lang.Object... args)
          Add a message in the warning list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyReporter

public EmptyReporter()
Method Detail

trace

public void trace(java.lang.String message,
                  java.lang.Object... args)
Description copied from interface: Reporter
Add aa trace message It accepts a Throwable as last argument.

Specified by:
trace in interface Reporter
Parameters:
message - trace message.
args - message's argument

info

public void info(java.lang.String message,
                 java.lang.Object... args)
Description copied from interface: Reporter
Add an informative message It accepts a Throwable as last argument.

Specified by:
info in interface Reporter
Parameters:
message - info message.
args - message's argument

warn

public void warn(java.lang.String message,
                 java.lang.Object... args)
Description copied from interface: Reporter
Add a message in the warning list. It accepts a Throwable as last argument.

Specified by:
warn in interface Reporter
Parameters:
message - warning message.
args - message's argument

error

public void error(java.lang.String message,
                  java.lang.Object... args)
Description copied from interface: Reporter
Add a message in the error list. It accepts a Throwable as last argument.

Specified by:
error in interface Reporter
Parameters:
message - error message.
args - message's argument

getErrors

public java.util.List<java.lang.String> getErrors()
Specified by:
getErrors in interface Reporter
Returns:
all the errors (fatal) reported by the manipulation process.

getWarnings

public java.util.List<java.lang.String> getWarnings()
Specified by:
getWarnings in interface Reporter
Returns:
all the warnings (non fatal) reported by the manipulation process.

getMessageArguments

protected java.lang.Object[] getMessageArguments(java.lang.Object... args)

getThrowable

protected java.lang.Throwable getThrowable(java.lang.Object... args)


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.