public interface EJBClientInterceptor
Interceptors are generally applied in priority order. Priority is determined by configuration or by the presence of
an ClientInterceptorPriority annotation on the interceptor class. If priorities are equal, then the
following configuration order applies:
| Modifier and Type | Method and Description |
|---|---|
void |
handleInvocation(EJBClientInvocationContext context)
Handle the invocation.
|
default void |
handleInvocationAsyncFailure(EJBClientInvocationContext context,
Exception failure) |
Object |
handleInvocationResult(EJBClientInvocationContext context)
Handle the invocation result.
|
default StatefulEJBLocator<?> |
handleSessionCreation(EJBSessionCreationInvocationContext context)
Optionally handle a session creation invocation.
|
void handleInvocation(EJBClientInvocationContext context) throws Exception
EJBClientInvocationContext.sendRequest().context - the invocation contextException - if an invocation error occursObject handleInvocationResult(EJBClientInvocationContext context) throws Exception
EJBClientInvocationContext.getResult()
immediately and perform any post-invocation cleanup task in a finally block.context - the invocation contextException - if an invocation error occurreddefault void handleInvocationAsyncFailure(EJBClientInvocationContext context, Exception failure)
default StatefulEJBLocator<?> handleSessionCreation(EJBSessionCreationInvocationContext context) throws Exception
context - the session creation invocation context (not null)null)Exception - if an invocation error occurredCopyright © 2017 JBoss by Red Hat. All rights reserved.