Package org.springframework.aot.hint
Class ClassProxyHint
java.lang.Object
org.springframework.aot.hint.ClassProxyHint
- All Implemented Interfaces:
ConditionalHint
A hint that describes the need for a proxy against a concrete class.
- 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.Return the target class of the proxy.int
hashCode()
static ClassProxyHint.Builder
Initialize a builder with the target class to use.static ClassProxyHint.Builder
of
(TypeReference typeReference) Initialize a builder with the target class 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 target class to use.- Parameters:
typeReference
- the type reference for the target class of the proxy- Returns:
- a builder for the hint
-
of
Initialize a builder with the target class to use.- Parameters:
targetClass
- the target class of the proxy- Returns:
- a builder for the hint
-
getTargetClass
Return the target class of the proxy.- Returns:
- the target class
-
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()
-