au.edu.archer.service.srb.impl
Class SRBInvocationAdvice

java.lang.Object
  extended by au.edu.archer.service.srb.impl.SRBInvocationAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.ThrowsAdvice

public class SRBInvocationAdvice
extends java.lang.Object
implements org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.aop.ThrowsAdvice

SRBInvocationAdvice.


Constructor Summary
SRBInvocationAdvice()
           
 
Method Summary
 void afterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
          
 void afterThrowing(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target, java.lang.Throwable e)
          After throwing.
 void before(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRBInvocationAdvice

public SRBInvocationAdvice()
Method Detail

before

public void before(java.lang.reflect.Method method,
                   java.lang.Object[] args,
                   java.lang.Object target)
            throws InvalidSRBRequestException

Specified by:
before in interface org.springframework.aop.MethodBeforeAdvice
Throws:
InvalidSRBRequestException

afterReturning

public void afterReturning(java.lang.Object returnValue,
                           java.lang.reflect.Method method,
                           java.lang.Object[] args,
                           java.lang.Object target)
                    throws java.lang.Throwable

Specified by:
afterReturning in interface org.springframework.aop.AfterReturningAdvice
Throws:
java.lang.Throwable

afterThrowing

public void afterThrowing(java.lang.reflect.Method method,
                          java.lang.Object[] args,
                          java.lang.Object target,
                          java.lang.Throwable e)
                   throws java.io.IOException
After throwing.

Parameters:
method - method object.
args - String array of arguments.
target - target object.
e - Throwable object.
Throws:
java.io.IOException - if IO error occurs.


Copyright © 2008-09 Monash University. All Rights Reserved.