org.zeroexchange.i18n.read
Class LocalizationProvidersFactory
java.lang.Object
org.zeroexchange.common.AbstractBeansRegistry<T>
org.zeroexchange.common.TypedBeansRegistry<P>
org.zeroexchange.common.processors.AbstractDataProcessorsRegistry<LocalizationProviderProcessor<Identifiable<? extends Serializable>>>
org.zeroexchange.i18n.read.LocalizationProvidersFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, BeansRegistry<LocalizationProviderProcessor<Identifiable<? extends Serializable>>>, LocalizationReader
public class LocalizationProvidersFactory
- extends AbstractDataProcessorsRegistry<LocalizationProviderProcessor<Identifiable<? extends Serializable>>>
- implements LocalizationReader
The factory of the localization services.
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalizationProvidersFactory
public LocalizationProvidersFactory()
getString
public String getString(Identifiable<? extends Serializable> entity)
- Returns localized string for the 'title' resource type.
- Specified by:
getString
in interface LocalizationReader
getString
public String getString(Identifiable<? extends Serializable> entity,
String resourceType)
- Returns localized string for the specified resource type.
- Specified by:
getString
in interface LocalizationReader
getString
public String getString(Identifiable<? extends Serializable> entity,
String resourceType,
String locale)
- Returns localized string for the specified resource type and locale.
- Specified by:
getString
in interface LocalizationReader
getBeanClass
protected Class<?> getBeanClass()
- Specified by:
getBeanClass
in class TypedBeansRegistry<LocalizationProviderProcessor<Identifiable<? extends Serializable>>>
Copyright © 2013. All Rights Reserved.