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
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.Return the target class of the proxy.inthashCode()static ClassProxyHint.BuilderInitialize a builder with the target class to use.static ClassProxyHint.Builderof(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, waitMethods 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: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
-
equals
-
hashCode
public int hashCode()
-