Package io.micronaut.aop
Interface InterceptedProxy<T>
-
- Type Parameters:
T- The declaring type
- All Superinterfaces:
Intercepted,io.micronaut.inject.proxy.InterceptedBean,io.micronaut.inject.proxy.InterceptedBeanProxy<T>,io.micronaut.inject.qualifiers.Qualified<T>
- All Known Subinterfaces:
HotSwappableInterceptedProxy<T>
public interface InterceptedProxy<T> extends Intercepted, io.micronaut.inject.qualifiers.Qualified<T>, io.micronaut.inject.proxy.InterceptedBeanProxy<T>
AInterceptedthat proxies another instance.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanhasCachedInterceptedTarget()Check if the proxy has the target cached before callinginterceptedTarget().TinterceptedTarget()This method will return the target object being proxied.
-
-
-
Method Detail
-
interceptedTarget
T interceptedTarget()
This method will return the target object being proxied.- Specified by:
interceptedTargetin interfaceio.micronaut.inject.proxy.InterceptedBeanProxy<T>- Returns:
- The proxy target
-
hasCachedInterceptedTarget
default boolean hasCachedInterceptedTarget()
Check if the proxy has the target cached before callinginterceptedTarget().- Specified by:
hasCachedInterceptedTargetin interfaceio.micronaut.inject.proxy.InterceptedBeanProxy<T>- Returns:
- true if the target is cached
- Since:
- 3.5.0
-
-