public class DefaultBinderFactory extends Object implements BinderFactory, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
BinderFactory
implementation.Modifier and Type | Class and Description |
---|---|
static interface |
DefaultBinderFactory.Listener
A listener that can be registered with the
DefaultBinderFactory that allows
the registration of additional configuration. |
Constructor and Description |
---|
DefaultBinderFactory(Map<String,BinderConfiguration> binderConfigurations) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
<T> Binder<T,?,?> |
getBinder(String name,
Class<? extends T> bindingTargetType)
Returns the binder instance associated with the given configuration name.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDefaultBinder(String defaultBinder) |
void |
setListeners(Collection<DefaultBinderFactory.Listener> listeners) |
public DefaultBinderFactory(Map<String,BinderConfiguration> binderConfigurations)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public void setDefaultBinder(String defaultBinder)
public void setListeners(Collection<DefaultBinderFactory.Listener> listeners)
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public <T> Binder<T,?,?> getBinder(String name, Class<? extends T> bindingTargetType)
BinderFactory
getBinder
in interface BinderFactory
name
- the name of a binder configurationCopyright © 2017 Pivotal Software, Inc.. All rights reserved.