Class DynamicProxyBeanProvider
java.lang.Object
com.atlassian.jira.com.rproxy.goskope.component.spring.provider.DynamicProxyBeanProvider
Provides dynamic proxy beans that allow switching the implementation at runtime.
-
Method Summary
-
Method Details
-
provide
Provides a proxy for the given bean interface. The supplier is called on EACH ACCESS to the bean to allow switching the implementation at runtime.- Type Parameters:
T- the type of the bean- Parameters:
beanInterface- the interface of the beandelegateSupplier- the supplier providing the bean implementation- Returns:
- the proxy bean
-