com.atlassian.bamboo.build.logger
Class LogInterceptorStack

java.lang.Object
  extended by com.atlassian.bamboo.build.logger.LogInterceptorStack
All Implemented Interfaces:
LogInterceptor, java.io.Serializable

public class LogInterceptorStack
extends java.lang.Object
implements LogInterceptor

This class handles attaching/detaching of interceptors and the actual interception forwarding.

See Also:
Serialized Form

Constructor Summary
LogInterceptorStack()
           
 
Method Summary
 void add(LogInterceptor interceptor)
          Adds a new interceptor to stack
 void clear()
          Removes all interceptors from stack
 void intercept(LogEntry logEntry)
          Method invoked whenever a new log entry is logged
 void interceptError(LogEntry logEntry)
          Method invoked whenever a new error log entry is logged
 void remove(LogInterceptor interceptor)
          Removes an interceptor from stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogInterceptorStack

public LogInterceptorStack()
Method Detail

clear

public void clear()
Removes all interceptors from stack


add

public void add(@NotNull
                LogInterceptor interceptor)
Adds a new interceptor to stack

Parameters:
interceptor - the interceptor to add

remove

public void remove(@Nullable
                   LogInterceptor interceptor)
Removes an interceptor from stack

Parameters:
interceptor - the interceptor to remove

intercept

public void intercept(@NotNull
                      LogEntry logEntry)
Description copied from interface: LogInterceptor
Method invoked whenever a new log entry is logged

Specified by:
intercept in interface LogInterceptor

interceptError

public void interceptError(@NotNull
                           LogEntry logEntry)
Description copied from interface: LogInterceptor
Method invoked whenever a new error log entry is logged

Specified by:
interceptError in interface LogInterceptor


Copyright © 2012 Atlassian. All Rights Reserved.