public class MessageInterpolatorFactory extends Object implements ObjectFactory<MessageInterpolator>
ObjectFactory
that can be used to create a MessageInterpolator
.
Attempts to pick the most appropriate MessageInterpolator
based on the
classpath.Constructor and Description |
---|
MessageInterpolatorFactory() |
MessageInterpolatorFactory(MessageSource messageSource)
Creates a new
MessageInterpolatorFactory that will produce a
MessageInterpolator that uses the given messageSource to resolve
any message parameters before final interpolation. |
public MessageInterpolatorFactory()
public MessageInterpolatorFactory(MessageSource messageSource)
MessageInterpolatorFactory
that will produce a
MessageInterpolator
that uses the given messageSource
to resolve
any message parameters before final interpolation.messageSource
- message source to be used by the interpolatorpublic MessageInterpolator getObject() throws BeansException
getObject
in interface ObjectFactory<MessageInterpolator>
BeansException