ch.elca.el4j.services.persistence.generic.dao
Class AbstractIdentityFixer.GenericInterceptor

java.lang.Object
  extended by org.springframework.aop.support.IntroductionInfoSupport
      extended by ch.elca.el4j.services.persistence.generic.dao.AbstractIdentityFixer.GenericInterceptor
All Implemented Interfaces:
Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, DynamicIntroductionAdvice, IntroductionInfo, IntroductionInterceptor
Enclosing class:
AbstractIdentityFixer

public class AbstractIdentityFixer.GenericInterceptor
extends IntroductionInfoSupport
implements IntroductionInterceptor

A generic "around advice" (as defined in AOP terminology) for remote objects. This interceptor works "out of the box" unless incoming objects have unknown logical identity. If this occurs, it attempts to infer logical identity from ReturnsUnchangedParameter annotations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.aop.support.IntroductionInfoSupport
publishedInterfaces
 
Constructor Summary
AbstractIdentityFixer.GenericInterceptor(Class<?> fixedInterface)
          Constructor.
 
Method Summary
 Object decorate(Object o)
          Convenience method returning a proxy to the supplied object that implements this "advice".
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
          
 
Methods inherited from class org.springframework.aop.support.IntroductionInfoSupport
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.aop.DynamicIntroductionAdvice
implementsInterface
 

Constructor Detail

AbstractIdentityFixer.GenericInterceptor

public AbstractIdentityFixer.GenericInterceptor(Class<?> fixedInterface)
Constructor.

Parameters:
fixedInterface - The marker-interface to be "introduced".
Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

decorate

public Object decorate(Object o)
Convenience method returning a proxy to the supplied object that implements this "advice".

Parameters:
o - .
Returns:
.


Copyright © 2005-2011 ELCA. All Rights Reserved.