Package org.springframework.aot.hint
Class JdkProxyHint
java.lang.Object
org.springframework.aot.hint.JdkProxyHint
- All Implemented Interfaces:
ConditionalHint
A hint that describes the need for a JDK interface-based
Proxy
.- Since:
- 6.0
- Author:
- Stephane Nicoll, Brian Clozel
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the interfaces to be proxied.Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.int
hashCode()
static JdkProxyHint.Builder
Initialize a builder with the proxied interfaces to use.static JdkProxyHint.Builder
of
(TypeReference... proxiedInterfaces) Initialize a builder with the proxied interfaces to use.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.aot.hint.ConditionalHint
conditionMatches
-
Method Details
-
of
Initialize a builder with the proxied interfaces to use.- Parameters:
proxiedInterfaces
- the interfaces the proxy should implement- Returns:
- a builder for the hint
-
of
Initialize a builder with the proxied interfaces to use.- Parameters:
proxiedInterfaces
- the interfaces the proxy should implement- Returns:
- a builder for the hint
-
getProxiedInterfaces
Return the interfaces to be proxied.- Returns:
- the interfaces that the proxy should implement
-
getReachableType
Description copied from interface:ConditionalHint
Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.- Specified by:
getReachableType
in interfaceConditionalHint
- Returns:
- the reachable type, if any
-
equals
-
hashCode
public int hashCode()
-