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 | Interface and Description |
---|---|
static class |
EJBClientInterceptor.Registration
Deprecated.
Please use EJBClientContext.Builder to manipulate the EJBClientInterceptors.
|
Modifier and Type | Method and Description |
---|---|
void |
handleInvocation(EJBClientInvocationContext context)
Handle the invocation.
|
Object |
handleInvocationResult(EJBClientInvocationContext context)
Handle the invocation result.
|
default SessionID |
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 SessionID handleSessionCreation(EJBSessionCreationInvocationContext context) throws Exception
context
- the session creation invocation context (not null
)null
)Exception
- if an invocation error occurredCopyright © 2019 JBoss by Red Hat. All rights reserved.