Package com.almis.awe.config
Class ServiceConfig
- java.lang.Object
-
- com.almis.awe.config.ServiceConfig
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
AbstractQueryBuilder
,AbstractQueryConnector
,AbstractRestConnector
,AccessService
,ActionService
,AweDatabaseContextHolder
,AweSessionDetails
,AweUserDetailService
,BroadcastService
,CalendarDAO
,ChartService
,DataListBuilder
,DataListService
,EmailBuilder
,EmailMaintainConnector
,EmailService
,EncodeService
,EnumBuilder
,FileChecker
,FileController
,FileDAO
,FileService
,HelpService
,InitService
,JavaConnector
,JobService
,JWTTokenService
,LauncherService
,LdapAweUserDetailsMapper
,LiteralsService
,LocaleFileService
,LocaleService
,LogService
,MaintainLauncher
,MaintainService
,MenuService
,NumericService
,PathService
,PrinterService
,PropertyService
,QueryLauncher
,QueryService
,QueryUtil
,QueueListener
,QueueMaintainConnector
,QueueProcessor
,ReportDesigner
,ReportFactory
,ReportGenerator
,ReportJob
,ReportService
,RestSecurityConfiguration
,SchedulerDAO
,SchedulerJobListener
,SchedulerService
,SchedulerTriggerListener
,ScreenComponentGenerator
,ScreenConfigurationGenerator
,ScreenModelGenerator
,ScreenRestrictionGenerator
,ScreenService
,SecurityConfig
,ServiceMaintainConnector
,SessionService
,SettingsController
,SqlExtractorService
,SQLMaintainConnector
,SystemService
,TaskDAO
,TemplateService
,TotpService
,TranslationService
,UploadController
,UserDAOImpl
public abstract class ServiceConfig extends Object implements org.springframework.context.ApplicationContextAware
Base class for all custom service- Author:
- Jorge BELLON
-
-
Constructor Summary
Constructors Constructor Description ServiceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsBean(String bean)
Check if bean is definedprotected org.springframework.context.ApplicationContext
getApplicationContext()
Get application context<T> T
getBean(Class<T> clazz)
Retrieve a beanObject
getBean(String beanId)
Retrieve a beanAweElements
getElements()
Returns instantiated elementsString
getLocale(String locale)
Retrieve localeString
getLocale(String locale, String... parameters)
Retrieve locale with parameterString
getProperty(String property)
Retrieve property<T> T
getProperty(String property, Class<T> clazz)
Retrieve property of a determined classAweRequest
getRequest()
Returns request objectAweSession
getSession()
Get current users sessionvoid
setApplicationContext(org.springframework.context.ApplicationContext context)
Autowired application context
-
-
-
Method Detail
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext context)
Autowired application context- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Parameters:
context
- application context
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
Get application context- Returns:
- context
-
getElements
public AweElements getElements()
Returns instantiated elements- Returns:
- Awe Elements
-
getRequest
public AweRequest getRequest()
Returns request object- Returns:
- Awe request
-
containsBean
public boolean containsBean(String bean)
Check if bean is defined- Parameters:
bean
- Bean class- Returns:
- Bean
-
getBean
public <T> T getBean(Class<T> clazz)
Retrieve a bean- Type Parameters:
T
- Bean- Parameters:
clazz
- Bean class- Returns:
- Bean
-
getBean
public Object getBean(String beanId)
Retrieve a bean- Parameters:
beanId
- Bean identifier- Returns:
- Bean
-
getSession
public AweSession getSession()
Get current users session- Returns:
- Awe Session
-
getLocale
public String getLocale(String locale)
Retrieve locale- Parameters:
locale
- Locale identifier- Returns:
- Locale text
-
getLocale
public String getLocale(String locale, String... parameters)
Retrieve locale with parameter- Parameters:
locale
- Locale identifierparameters
- Parameter- Returns:
- Locale text
-
getProperty
public String getProperty(String property)
Retrieve property- Parameters:
property
- Property identifier- Returns:
- Property value
-
-