Package org.springframework.aot.hint
Class ProxyHints
java.lang.Object
org.springframework.aot.hint.ProxyHints
Gather the need of using proxies at runtime.
- Since:
- 6.0
- Author:
- Stephane Nicoll
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the class-based proxies that are required.Return the interfaces-based proxies that are required.registerClassProxy(Class<?> targetClass, Consumer<ClassProxyHint.Builder> classProxyHint) Register that a class proxy is required for the specified class.registerClassProxy(TypeReference targetClass, Consumer<ClassProxyHint.Builder> classProxyHint) Register that a class proxy is required for the class defined by the specifiedTypeReference.registerJdkProxy(Class<?>... proxiedInterfaces) Register that a JDK proxy implementing the specified interfaces is required.registerJdkProxy(Consumer<JdkProxyHint.Builder> jdkProxyHint) Register aJdkProxyHint.registerJdkProxy(TypeReference... proxiedInterfaces) Register that a JDK proxy implementing the interfaces defined by the specifiedtype referencesis required.
- 
Constructor Details- 
ProxyHintspublic ProxyHints()
 
- 
- 
Method Details- 
jdkProxiesReturn the interfaces-based proxies that are required.- Returns:
- a stream of JdkProxyHint
 
- 
classProxiesReturn the class-based proxies that are required.- Returns:
- a stream of ClassProxyHint
 
- 
registerJdkProxyRegister aJdkProxyHint.- Parameters:
- jdkProxyHint- the supplier to the hint
- Returns:
- this, to facilitate method chaining
 
- 
registerJdkProxyRegister that a JDK proxy implementing the interfaces defined by the specifiedtype referencesis required.- Parameters:
- proxiedInterfaces- the interfaces the proxy should implement
- Returns:
- this, to facilitate method chaining
 
- 
registerJdkProxyRegister that a JDK proxy implementing the specified interfaces is required.- Parameters:
- proxiedInterfaces- the interfaces the proxy should implement
- Returns:
- this, to facilitate method chaining
 
- 
registerClassProxypublic ProxyHints registerClassProxy(TypeReference targetClass, Consumer<ClassProxyHint.Builder> classProxyHint) Register that a class proxy is required for the class defined by the specifiedTypeReference.- Parameters:
- targetClass- the target class of the proxy
- classProxyHint- a builder to further customize the hint for that proxy
- Returns:
- this, to facilitate method chaining
 
- 
registerClassProxypublic ProxyHints registerClassProxy(Class<?> targetClass, Consumer<ClassProxyHint.Builder> classProxyHint) Register that a class proxy is required for the specified class.- Parameters:
- targetClass- the target class of the proxy
- classProxyHint- a builder to further customize the hint for that proxy
- Returns:
- this, to facilitate method chaining
 
 
-