Interface BinderFactory
- All Known Implementing Classes:
DefaultBinderFactory
public interface BinderFactory
- Author:
- Marius Bogoevici
-
Method Summary
Modifier and TypeMethodDescription<T> Binder<T,
? extends ConsumerProperties, ? extends ProducerProperties> Returns the binder instance associated with the given configuration name.
-
Method Details
-
getBinder
<T> Binder<T,? extends ConsumerProperties, getBinder? extends ProducerProperties> (String configurationName, Class<? extends T> bindableType) Returns the binder instance associated with the given configuration name. Instance caching is a requirement, and implementations must return the same instance on subsequent invocations with the same arguments.- Type Parameters:
T
- the primary binding type- Parameters:
configurationName
- the name of a binder configurationbindableType
- binding target type- Returns:
- the binder instance
-