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
,EmailMaintainConnector
,EmailService
,EncodeService
,EnumBuilder
,FileChecker
,FileController
,FileDAO
,FileService
,HelpService
,InitService
,JavaConnector
,JobService
,JWTTokenService
,LauncherService
,LdapAweUserDetailsMapper
,LiteralsService
,LocaleFileService
,LocaleService
,LogService
,MailSenderFactory
,MaintainLauncher
,MaintainService
,MenuService
,NumericService
,PathService
,PrinterService
,PropertyService
,QueryLauncher
,QueryService
,QueryUtil
,QueueListener
,QueueMaintainConnector
,QueueProcessor
,RemoteSchedulerService
,ReportDesigner
,ReportGenerator
,ReportJob
,ReportService
,RestSecurityConfiguration
,SchedulerDAO
,SchedulerEmailReportService
,SchedulerJobListener
,SchedulerNoneReport
,SchedulerSecurityConfig
,SchedulerService
,SchedulerTriggerListener
,ScreenComponentGenerator
,ScreenConfigurationGenerator
,ScreenModelGenerator
,ScreenService
,SecurityConfig
,ServiceMaintainConnector
,SessionService
,SettingsController
,SqlExtractorService
,SQLMaintainConnector
,SystemService
,TaskDAO
,TemplateService
,TotpService
,TranslationService
,UploadController
,UserDAOImpl
,UserService
public abstract class ServiceConfig
extends Object
implements org.springframework.context.ApplicationContextAware
Base class for all custom service
- Author:
- Jorge BELLON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsBean
(String bean) Check if bean is definedprotected org.springframework.context.ApplicationContext
Get application context<T> T
Retrieve a beanRetrieve a beanReturns instantiated elementsRetrieve localeRetrieve locale with parametergetProperty
(String property) Retrieve property<T> T
getProperty
(String property, Class<T> clazz) Retrieve property of a determined classReturns request objectGet current users sessionvoid
setApplicationContext
(org.springframework.context.ApplicationContext context) Autowired application context
-
Constructor Details
-
ServiceConfig
public ServiceConfig()
-
-
Method Details
-
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
Returns instantiated elements- Returns:
- Awe Elements
-
getRequest
Returns request object- Returns:
- Awe request
-
containsBean
Check if bean is defined- Parameters:
bean
- Bean class- Returns:
- Bean
-
getBean
Retrieve a bean- Type Parameters:
T
- Bean- Parameters:
clazz
- Bean class- Returns:
- Bean
-
getBean
Retrieve a bean- Parameters:
beanId
- Bean identifier- Returns:
- Bean
-
getSession
Get current users session- Returns:
- Awe Session
-
getLocale
Retrieve locale- Parameters:
locale
- Locale identifier- Returns:
- Locale text
-
getLocale
Retrieve locale with parameter- Parameters:
locale
- Locale identifierparameters
- Parameter- Returns:
- Locale text
-
getProperty
Retrieve property- Parameters:
property
- Property identifier- Returns:
- Property value
-
getProperty
Retrieve property of a determined class- Type Parameters:
T
- Return value class- Parameters:
property
- Property identifierclazz
- Property class- Returns:
- Property value
-