net.openmarkup
Class LoggingInterceptor

java.lang.Object
  extended bynet.openmarkup.Interceptor
      extended bynet.openmarkup.LoggingInterceptor
All Implemented Interfaces:
InvocationHandler

public class LoggingInterceptor
extends Interceptor

LoggingInterceptor

Author:
Ramesh Gupta

Constructor Summary
LoggingInterceptor(Object delegate)
           
 
Method Summary
protected  void processBefore(Method meth, Object[] args)
          Called before method is invoked.
protected  void processError(Object delegate, Method meth, Object[] args, Throwable ex)
          Error handling method.
 
Methods inherited from class net.openmarkup.Interceptor
getInterceptorClasses, invoke, processAfter, wrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInterceptor

public LoggingInterceptor(Object delegate)
Method Detail

processBefore

protected void processBefore(Method meth,
                             Object[] args)
Description copied from class: Interceptor
Called before method is invoked. May be overridden to provide specific functionality, such as trace logs, auditing, or security checks.

Overrides:
processBefore in class Interceptor
Parameters:
meth -
args -

processError

protected void processError(Object delegate,
                            Method meth,
                            Object[] args,
                            Throwable ex)
                     throws Throwable
Description copied from class: Interceptor
Error handling method. MUST be implemented by interceptor subclasses. This error handling method may try to invoke the failed method again on the delegate, optionally changing the method arguments, if necessary. It may also choose to handle the error partially, and propagate it along the chain of responsibility, or handle it completely and stop any further processing along the chain.

Specified by:
processError in class Interceptor
Parameters:
delegate -
meth -
args -
ex -
Throws:
Throwable


Copyright 2003-2004 eNode, Inc. All rights reserved.