本文整理汇总了Java中com.github.czyzby.autumn.mvc.component.i18n.processor.AvailableLocalesAnnotationProcessor类的典型用法代码示例。如果您正苦于以下问题:Java AvailableLocalesAnnotationProcessor类的具体用法?Java AvailableLocalesAnnotationProcessor怎么用?Java AvailableLocalesAnnotationProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AvailableLocalesAnnotationProcessor类属于com.github.czyzby.autumn.mvc.component.i18n.processor包,在下文中一共展示了AvailableLocalesAnnotationProcessor类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDefaultComponents
import com.github.czyzby.autumn.mvc.component.i18n.processor.AvailableLocalesAnnotationProcessor; //导入依赖的package包/类
/** Invoked before context initiation.
*
* @param initializer should be used to registered default components, created with plain old Java. */
protected void addDefaultComponents(final ContextInitializer initializer) {
initializer.addComponents(
// PROCESSORS.
// Assets:
new AssetService(), new SkinAssetAnnotationProcessor(),
// Locale:
new LocaleService(),
// SFX:
new MusicEnabledAnnotationProcessor(), new MusicVolumeAnnotationProcessor(),
new SoundEnabledAnnotationProcessor(), new SoundVolumeAnnotationProcessor(),
// Settings:
new I18nBundleAnnotationProcessor(), new PreferenceAnnotationProcessor(), new SkinAnnotationProcessor(),
new StageViewportAnnotationProcessor(), new PreferencesService(),
// Interface:
new ViewAnnotationProcessor(), new ViewDialogAnnotationProcessor(),
new ViewActionContainerAnnotationProcessor(), new ViewStageAnnotationProcessor(),
new LmlMacroAnnotationProcessor(), new LmlParserSyntaxAnnotationProcessor(),
new AvailableLocalesAnnotationProcessor(),
// COMPONENTS.
// SFX:
new MusicService(),
// Interface:
interfaceService, new SkinService());
}
示例2: addDefaultComponents
import com.github.czyzby.autumn.mvc.component.i18n.processor.AvailableLocalesAnnotationProcessor; //导入依赖的package包/类
/** Invoked before context initiation.
* @param initializer should be used to registered default components, created with plain old Java. */
protected void addDefaultComponents(final ContextInitializer initializer) {
initializer.addComponents(
// PROCESSORS
// Assets:
new AssetService(), new SkinAssetAnnotationProcessor(),
// Locale:
localeService = new LocaleService(),
// Settings:
new I18nBundleAnnotationProcessor(), new PreferenceAnnotationProcessor(), new SkinAnnotationProcessor(),
new StageViewportAnnotationProcessor(), new PreferencesService(),
// Interface:
new ViewAnnotationProcessor(), new ViewDialogAnnotationProcessor(),
new ViewActionContainerAnnotationProcessor(), new ViewStageAnnotationProcessor(),
new LmlMacroAnnotationProcessor(), new LmlParserSyntaxAnnotationProcessor(),
new AvailableLocalesAnnotationProcessor(),
// COMPONENTS
// Interface:
interfaceService = new InterfaceService(),
new SkinService(),
// Custom
modelService = new ModelService(),
shortcutHandler = new GlobalShortcutHandler(),
componentExtractor = new ComponentExtractor());
}