Top Description Constructors Methods
org.springframework.aot.hint.predicate

public Class ProxyHintsPredicates

extends Object
Class Inheritance
Imports
java.util.Arrays, .List, java.util.function.Predicate, org.springframework.aot.hint.ProxyHints, .RuntimeHints, .TypeReference, org.springframework.util.Assert

Generator of ProxyHints predicates, testing whether the given hints match the expected behavior for proxies.
Author
Brian Clozel
Since
6.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Predicate<RuntimeHints>

Returns:

the RuntimeHints predicate
forInterfaces
(Class<?>...
the proxied interfaces
interfaces
)

Return a predicate that checks whether a org.springframework.aot.hint.JdkProxyHint is registered for the given interfaces.

public Predicate<RuntimeHints>

Returns:

the RuntimeHints predicate
forInterfaces
(TypeReference...
the proxied interfaces as type references
interfaces
)

Return a predicate that checks whether a org.springframework.aot.hint.JdkProxyHint is registered for the given interfaces.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ProxyHintsPredicatesback to summary
pack-priv ProxyHintsPredicates()

Method Detail

forInterfacesback to summary
public Predicate<RuntimeHints> forInterfaces(Class<?>... interfaces)

Return a predicate that checks whether a org.springframework.aot.hint.JdkProxyHint is registered for the given interfaces.

Note that the order in which interfaces are given matters.

Parameters
interfaces:Class<?>[]

the proxied interfaces

Returns:Predicate<RuntimeHints>

the RuntimeHints predicate

See Also
java.lang.reflect.Proxy
forInterfacesback to summary
public Predicate<RuntimeHints> forInterfaces(TypeReference... interfaces)

Return a predicate that checks whether a org.springframework.aot.hint.JdkProxyHint is registered for the given interfaces.

Note that the order in which interfaces are given matters.

Parameters
interfaces:TypeReference[]

the proxied interfaces as type references

Returns:Predicate<RuntimeHints>

the RuntimeHints predicate

See Also
java.lang.reflect.Proxy