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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the interfaces to be proxied.Return the type that should be reachable for this hint to apply, ornullif this hint should always been applied.inthashCode()booleanReturn whether this hint registers the proxy for Java serialization.static JdkProxyHint.BuilderInitialize a builder with the proxied interfaces to use.static JdkProxyHint.Builderof(TypeReference... proxiedInterfaces) Initialize a builder with the proxied interfaces to use.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ConditionalHintReturn the type that should be reachable for this hint to apply, ornullif this hint should always been applied.- Specified by:
getReachableTypein interfaceConditionalHint- Returns:
- the reachable type, if any
-
hasJavaSerialization
public boolean hasJavaSerialization()Return whether this hint registers the proxy for Java serialization.- Returns:
- whether the proxy is registered for Java serialization
- Since:
- 7.0.6
-
equals
-
hashCode
-