org.jboss.seam.persistence
Class ManagedEntityIdentityInterceptor

java.lang.Object
  extended by org.jboss.seam.intercept.AbstractInterceptor
      extended by org.jboss.seam.persistence.ManagedEntityIdentityInterceptor
All Implemented Interfaces:
Serializable, OptimizedInterceptor

@Interceptor(around=BijectionInterceptor.class)
public class ManagedEntityIdentityInterceptor
extends AbstractInterceptor

Swizzles entity references around each invocation, maintaining referential integrity even across passivation of the stateful bean or Seam-managed extended persistence context, and allowing for more efficient replication.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
ManagedEntityIdentityInterceptor()
           
 
Method Summary
 Object aroundInvoke(InvocationContext ctx)
           
 void entityIdsToRefs(InvocationContext ctx)
           
 void entityRefsToIds(InvocationContext ctx)
           
 
Methods inherited from class org.jboss.seam.intercept.AbstractInterceptor
getComponent, setComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedEntityIdentityInterceptor

public ManagedEntityIdentityInterceptor()
Method Detail

aroundInvoke

@AroundInvoke
public Object aroundInvoke(InvocationContext ctx)
                    throws Exception
Throws:
Exception

entityRefsToIds

public void entityRefsToIds(InvocationContext ctx)
                     throws Exception
Throws:
Exception

entityIdsToRefs

public void entityIdsToRefs(InvocationContext ctx)
                     throws Exception
Throws:
Exception