ch.elca.el4j.services.persistence.generic.dao
Class AbstractIdentityFixer.GenericInterceptor
java.lang.Object
org.springframework.aop.support.IntroductionInfoSupport
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIdentityFixer.GenericInterceptor
public AbstractIdentityFixer.GenericInterceptor(Class<?> fixedInterface)
- Constructor.
- Parameters:
fixedInterface
- The marker-interface to be "introduced".
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.