Class JdkProxyHint.Builder
java.lang.Object
org.springframework.aot.hint.JdkProxyHint.Builder
- Enclosing class:
JdkProxyHint
Builder for
JdkProxyHint.- Since:
- 6.0
- Author:
- Stephane Nicoll, Brian Clozel
-
Method Summary
Modifier and TypeMethodDescriptiononReachableType(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.proxiedInterfaces(Class<?>... proxiedInterfaces) Add the specified interfaces that the proxy should implement.proxiedInterfaces(TypeReference... proxiedInterfaces) Add the specified interfaces that the proxy should implement.withJavaSerialization(boolean javaSerialization) Specify if this proxy should be registered for Java serialization.
-
Method Details
-
proxiedInterfaces
Add the specified interfaces that the proxy should implement.- Parameters:
proxiedInterfaces- the interfaces the proxy should implement- Returns:
this, to facilitate method chaining
-
proxiedInterfaces
Add the specified interfaces that the proxy should implement.- Parameters:
proxiedInterfaces- the interfaces the proxy should implement- Returns:
this, to facilitate method chaining
-
onReachableType
Make this hint conditional on the fact that the specified type can be resolved.- Parameters:
reachableType- the type that should be reachable for this hint to apply- Returns:
this, to facilitate method chaining
-
withJavaSerialization
Specify if this proxy should be registered for Java serialization.- Parameters:
javaSerialization- whether to register this proxy for Java serialization- Returns:
this, to facilitate method chaining- Since:
- 7.0.6
-