public class RefInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageInterceptor, OperationInterceptor, TargetInterceptor, Prototype<RefInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparator
Prototype.PrototypingContext
DEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY
Constructor and Description |
---|
RefInterceptor() |
Modifier and Type | Method and Description |
---|---|
InterceptorResult |
after(Message message,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run after a message is executed.
|
InterceptorResult |
after(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run after an operation is executed.
|
InterceptorResult |
before(Message message,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run before a message is executed.
|
InterceptorResult |
before(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run before an operation is executed.
|
void |
init(MessagingContainer messagingContainer) |
RefInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
XDIAddress |
targetAddress(XDIAddress targetAddress,
Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Replaces or skips the target address before it is executed.
|
XDIStatement |
targetStatement(XDIStatement targetStatement,
Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Replaces or skips the target statement before it is executed.
|
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
public RefInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor
in interface Prototype<RefInterceptor>
public void init(MessagingContainer messagingContainer) throws Exception
init
in interface Extension<MessagingContainer>
init
in class AbstractExtension<MessagingContainer>
Exception
public InterceptorResult before(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptor
before
in interface MessageInterceptor
message
- The message to process.executionContext
- The current execution context.executionResult
- The execution result.Xdi2MessagingException
public InterceptorResult after(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptor
after
in interface MessageInterceptor
message
- The message to process.executionContext
- The current execution context.executionResult
- The execution result.Xdi2MessagingException
public InterceptorResult before(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptor
before
in interface OperationInterceptor
operation
- The operation to process.operationResultGraph
- The operation's message result.executionContext
- The current execution context.Xdi2MessagingException
public InterceptorResult after(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptor
after
in interface OperationInterceptor
operation
- The operation to process.operationResultGraph
- The operation's message result.executionContext
- The current execution context.Xdi2MessagingException
public XDIAddress targetAddress(XDIAddress targetAddress, Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
TargetInterceptor
targetAddress
in interface TargetInterceptor
targetAddress
- The target address.operation
- The operation to process.executionContext
- The current execution context.Xdi2MessagingException
public XDIStatement targetStatement(XDIStatement targetStatement, Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
TargetInterceptor
targetStatement
in interface TargetInterceptor
targetStatement
- The target statement.operation
- The operation to process.executionContext
- The current execution context.Xdi2MessagingException
Copyright © 2017. All rights reserved.