org.zeroexchange.i18n.read
Class LocalizationProvidersFactory

java.lang.Object
  extended by org.zeroexchange.common.AbstractBeansRegistry<T>
      extended by org.zeroexchange.common.TypedBeansRegistry<P>
          extended by org.zeroexchange.common.processors.AbstractDataProcessorsRegistry<LocalizationProviderProcessor<Identifiable<? extends Serializable>>>
              extended by 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

Constructor Summary
LocalizationProvidersFactory()
           
 
Method Summary
protected  Class<?> getBeanClass()
           
 String getString(Identifiable<? extends Serializable> entity)
          Returns localized string for the 'title' resource type.
 String getString(Identifiable<? extends Serializable> entity, String resourceType)
          Returns localized string for the specified resource type.
 String getString(Identifiable<? extends Serializable> entity, String resourceType, String locale)
          Returns localized string for the specified resource type and locale.
 
Methods inherited from class org.zeroexchange.common.processors.AbstractDataProcessorsRegistry
getProcessor, getProcessors, isElected
 
Methods inherited from class org.zeroexchange.common.TypedBeansRegistry
afterPropertiesSet
 
Methods inherited from class org.zeroexchange.common.AbstractBeansRegistry
createBeansCollection, getBeans, postProcessAfterInitialization, postProcessBeforeInitialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizationProvidersFactory

public LocalizationProvidersFactory()
Method Detail

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.