org.granite.tide.spring
Class TideDataPublishingInterceptor

java.lang.Object
  extended by org.granite.tide.spring.TideDataPublishingInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, InitializingBean

public class TideDataPublishingInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, InitializingBean

Spring AOP interceptor to handle publishing of data changes instead of relying on the default behaviour This can be used outside of a HTTP Granite context and inside the security/transaction context Ensure that the order of the interceptor is correctly setup to use ON_COMMIT publish mode: this interceptor must be executed inside a transaction

Author:
William DRAI

Constructor Summary
TideDataPublishingInterceptor()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 void setDataUpdatePostprocessor(DataUpdatePostprocessor dataUpdatePostprocessor)
           
 void setGravity(Gravity gravity)
           
 void setTideDataPublishingWrapper(TideDataPublishingWrapper tideDataPublishingWrapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TideDataPublishingInterceptor

public TideDataPublishingInterceptor()
Method Detail

setGravity

public void setGravity(Gravity gravity)

setTideDataPublishingWrapper

public void setTideDataPublishingWrapper(TideDataPublishingWrapper tideDataPublishingWrapper)

setDataUpdatePostprocessor

@Autowired(required=false)
public void setDataUpdatePostprocessor(DataUpdatePostprocessor dataUpdatePostprocessor)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable