net.openmarkup
Class LoggingInterceptor
java.lang.Object
net.openmarkup.Interceptor
net.openmarkup.LoggingInterceptor
- All Implemented Interfaces:
- InvocationHandler
- public class LoggingInterceptor
- extends Interceptor
LoggingInterceptor
- Author:
- Ramesh Gupta
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingInterceptor
public LoggingInterceptor(Object delegate)
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.