public class InterceptionDecorationContext extends Object
CombinedInterceptorAndDecoratorStackMethodHandler
references for which interception is currently
suppressed (so that self-invocation is not possible).
Such references are added as soon as a CombinedMethodHandler is executed in an interception context that
does not hold it.
Classes may create new interception contexts as necessary (e.g. allowing client proxies to create new interception
contexts in order to make circular references interceptable multiple times).Modifier and Type | Class and Description |
---|---|
static class |
InterceptionDecorationContext.Stack |
Modifier and Type | Method and Description |
---|---|
static boolean |
empty()
Indicates whether the stack is empty.
|
static void |
endInterceptorContext() |
static InterceptionDecorationContext.Stack |
getStack()
Gets the current Stack.
|
static CombinedInterceptorAndDecoratorStackMethodHandler |
peek()
Peeks the current top of the stack.
|
static CombinedInterceptorAndDecoratorStackMethodHandler |
peekIfNotEmpty()
Peeks the current top of the stack or returns null if the stack is empty
|
static InterceptionDecorationContext.Stack |
startIfNotEmpty()
This is called by client proxies.
|
static InterceptionDecorationContext.Stack |
startIfNotOnTop(CombinedInterceptorAndDecoratorStackMethodHandler context)
Pushes the given context to the stack if the given context is not on top of the stack already.
|
public static CombinedInterceptorAndDecoratorStackMethodHandler peek()
EmptyStackException
public static CombinedInterceptorAndDecoratorStackMethodHandler peekIfNotEmpty()
public static boolean empty()
public static void endInterceptorContext()
public static InterceptionDecorationContext.Stack startIfNotEmpty()
InterceptionDecorationContext.Stack.end()
on the returned value.public static InterceptionDecorationContext.Stack startIfNotOnTop(CombinedInterceptorAndDecoratorStackMethodHandler context)
endInterceptorContext()
after the invocation finishes.context
- the given contextpublic static InterceptionDecorationContext.Stack getStack()
Copyright © 2022. All rights reserved.