Package com.almis.awe.autoconfigure
Class TemplateConfig
java.lang.Object
com.almis.awe.autoconfigure.TemplateConfig
Manage template configuration
-
Constructor Summary
ConstructorDescriptionTemplateConfig
(BaseConfigProperties baseConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.stringtemplate.v4.STGroup
elementsTemplateGroup
(org.stringtemplate.v4.STErrorListener errorListener) Retrieve elements template grouphelpService
(TemplateService templateService) Help serviceorg.stringtemplate.v4.STGroup
helpTemplateGroup
(org.stringtemplate.v4.STErrorListener errorListener) Retrieve help template grouporg.stringtemplate.v4.STGroup
screensTemplateGroup
(org.stringtemplate.v4.STErrorListener errorListener) Retrieve screens template grouptemplateDao
(MenuService menuService, AweElementsDao aweElementsDao, org.stringtemplate.v4.STGroup helpTemplateGroup) Template DAOorg.stringtemplate.v4.STErrorListener
Retrieve template error listenertemplateService
(MenuService menuService, org.stringtemplate.v4.STGroup elementsTemplateGroup, org.stringtemplate.v4.STGroup helpTemplateGroup, org.stringtemplate.v4.STGroup screensTemplateGroup, QueryService queryService, TemplateDao templateDao) Template service
-
Constructor Details
-
TemplateConfig
Autowired constructor- Parameters:
baseConfigProperties
- Base config properties
-
-
Method Details
-
templateErrorListener
@Bean public org.stringtemplate.v4.STErrorListener templateErrorListener()Retrieve template error listener- Returns:
- Error listener
-
elementsTemplateGroup
@Bean("elementsTemplateGroup") public org.stringtemplate.v4.STGroup elementsTemplateGroup(org.stringtemplate.v4.STErrorListener errorListener) Retrieve elements template group- Parameters:
errorListener
- Error listener- Returns:
- Partials template group
-
helpTemplateGroup
@Bean("helpTemplateGroup") public org.stringtemplate.v4.STGroup helpTemplateGroup(org.stringtemplate.v4.STErrorListener errorListener) Retrieve help template group- Returns:
- Partials template group
-
screensTemplateGroup
@Bean("screensTemplateGroup") public org.stringtemplate.v4.STGroup screensTemplateGroup(org.stringtemplate.v4.STErrorListener errorListener) Retrieve screens template group- Returns:
- Partials template group
-
templateDao
@Bean @ConditionalOnMissingBean public TemplateDao templateDao(MenuService menuService, AweElementsDao aweElementsDao, @Qualifier("helpTemplateGroup") org.stringtemplate.v4.STGroup helpTemplateGroup) Template DAO- Parameters:
menuService
- Menu serviceaweElementsDao
- AWE Elements DAOhelpTemplateGroup
- Help template group- Returns:
- Template service bean
-
templateService
@Bean @ConditionalOnMissingBean public TemplateService templateService(MenuService menuService, @Qualifier("elementsTemplateGroup") org.stringtemplate.v4.STGroup elementsTemplateGroup, @Qualifier("helpTemplateGroup") org.stringtemplate.v4.STGroup helpTemplateGroup, @Qualifier("screensTemplateGroup") org.stringtemplate.v4.STGroup screensTemplateGroup, QueryService queryService, TemplateDao templateDao) Template service- Parameters:
menuService
- Menu serviceelementsTemplateGroup
- Elements template grouphelpTemplateGroup
- Help template groupscreensTemplateGroup
- Screens template groupqueryService
- Query service- Returns:
- Template service bean
-
helpService
Help service- Parameters:
templateService
- Template service- Returns:
- Help service bean
-