Package io.micronaut.inject.proxy
Interface InterceptedBeanProxy<T>
- Type Parameters:
T
- The declaring type
- All Superinterfaces:
InterceptedBean
,Qualified<T>
- All Known Subinterfaces:
HotSwappableInterceptedProxy<T>
,InterceptedProxy<T>
An internal
InterceptedBean
that proxies another instance.
Inject aware version of AOP interface.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
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.- Returns:
- The proxy target
-
hasCachedInterceptedTarget
default boolean hasCachedInterceptedTarget()Check if the proxy has the target cached before callinginterceptedTarget()
.- Returns:
- true if the target is cached
-