Package com.bld.proxy.api.find.config
Class ProxyConfig
java.lang.Object
com.bld.proxy.api.find.config.ProxyConfig
Factory bean that creates Java dynamic proxy instances for
ApiFindController interfaces.
ProxyConfig is a Spring component that wraps the JDK
Proxy API. It is used by ApiFindRegistrar
as a factory method (proxyConfig.newProxyInstance(interfaceClass)) when
registering each controller interface as a bean in the application context.
All proxy calls are delegated to
ApiFindInterceptor, which handles
the actual query resolution and execution.
- Author:
- Francesco Baldi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TnewProxyInstance(Class<T> classT) Creates a new JDK dynamic proxy for the given interface, backed byApiFindInterceptor.
-
Constructor Details
-
ProxyConfig
public ProxyConfig()
-
-
Method Details
-
newProxyInstance
Creates a new JDK dynamic proxy for the given interface, backed byApiFindInterceptor.- Type Parameters:
T- the interface type- Parameters:
classT- the interface class to proxy; must not benull- Returns:
- a proxy instance that implements
classT
-