Interface ThisLazyAware
-
- All Implemented Interfaces:
public interface ThisLazyAware<T>@Setter(onMethod_ = {@Autowired, @Lazy}) protected RuntimeConfServiceImpl thisLazy = this; Except for the following cases, there are runtime type exceptions, where `M` represents the enhanced method used by thisLazy, * `T` is an interface, and all `M` come from `T` (best practice) * `T` is a class, and `M` is enhanced by Cglib (proxyTargetClass=true) * no `M`, in which case `T` is itself (but should not use this pattern)- Since:
2024-05-10
trydofor
-
-
Method Summary
Modifier and Type Method Description abstract voidsetThisLazy(@NotNull() T thisLazy)inject enhanced this before Bean Initialization Class<out Object>thisLazyType()the type of thisLazy, Object to skip check. -
-
Method Detail
-
setThisLazy
abstract void setThisLazy(@NotNull() T thisLazy)
inject enhanced this before Bean Initialization
- Parameters:
thisLazy- enhanced bean
-
thisLazyType
@NotNull() Class<out Object> thisLazyType()
the type of thisLazy, Object to skip check.
-
-
-
-