Class SessionProviderAwareInterceptor
java.lang.Object
org.tentackle.reflect.AbstractInterceptor
org.tentackle.pdo.SessionProviderAwareInterceptor
- All Implemented Interfaces:
InvocationHandler, Interceptor
- Direct Known Subclasses:
LocalSessionOnlyInterceptor, PostCommitInterceptor, PreCommitInterceptor, RemoteMethodAwareInterceptor
Base implementation for interceptors on
SessionProviders.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SessiongetSession(Object orgProxy) Returns the session from the given proxy.
ThrowsPersistenceExceptionif the proxy is not aSessionProvideror the session is null.Methods inherited from class AbstractInterceptor
getAnnotation, getChainedInterceptor, invoke, proceed, setAnnotation, setChainedInterceptor
-
Constructor Details
-
SessionProviderAwareInterceptor
public SessionProviderAwareInterceptor()Parent constructor.
-
-
Method Details
-
getSession
Returns the session from the given proxy.
ThrowsPersistenceExceptionif the proxy is not aSessionProvideror the session is null.- Parameters:
orgProxy- the proxy object- Returns:
- the session, never null
-