Package io.micronaut.aop
Interface InterceptedProxy<T>
- Type Parameters:
T
- The declaring type
- All Superinterfaces:
Intercepted
,InterceptedBean
,InterceptedBeanProxy<T>
,Qualified<T>
- All Known Subinterfaces:
HotSwappableInterceptedProxy<T>
A
Intercepted
that proxies another instance.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Check if the proxy has the target cached before callinginterceptedTarget()
.This method will return the target object being proxied.Methods inherited from interface io.micronaut.inject.qualifiers.Qualified
$withBeanQualifier
-
Method Details
-
interceptedTarget
T interceptedTarget()This method will return the target object being proxied.- Specified by:
interceptedTarget
in interfaceInterceptedBeanProxy<T>
- Returns:
- The proxy target
-
hasCachedInterceptedTarget
default boolean hasCachedInterceptedTarget()Check if the proxy has the target cached before callinginterceptedTarget()
.- Specified by:
hasCachedInterceptedTarget
in interfaceInterceptedBeanProxy<T>
- Returns:
- true if the target is cached
- Since:
- 3.5.0
-