Class AweAutoConfiguration

    • Constructor Detail

      • AweAutoConfiguration

        @Autowired
        public AweAutoConfiguration​(org.springframework.web.context.WebApplicationContext context)
        Autowired constructor
        Parameters:
        context - Context
    • Method Detail

      • numericService

        @Bean
        @ConditionalOnMissingBean
        public NumericService numericService​(NumericConfigProperties numericConfigProperties)
        Numeric service constructor
        Returns:
        Numeric service bean
      • encodeService

        @Bean
        @ConditionalOnMissingBean
        public EncodeService encodeService​(BaseConfigProperties baseConfigProperties,
                                           SecurityConfigProperties securityConfigProperties)
        Encode service bean
        Parameters:
        baseConfigProperties - Base configuration properties
        securityConfigProperties - Security configuration properties
        Returns:
        EncodeService bean
      • aweRequest

        @Bean
        @ConditionalOnMissingBean
        @RequestScope
        public AweRequest aweRequest​(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     com.fasterxml.jackson.databind.ObjectMapper mapper)
        Awe Request
        Returns:
        Request beans
      • aweElements

        @Bean
        @ConditionalOnMissingBean
        public AweElements aweElements​(AweElementsDao elementsDao,
                                       BaseConfigProperties baseConfigProperties)
        Awe Elements bean
        Parameters:
        elementsDao - Elements DAO
        baseConfigProperties - Base configuration properties
        Returns:
        Awe Elements bean
      • objectMapper

        @Bean
        @ConditionalOnMissingBean
        public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
        Object mapper
        Returns:
        ObjectMapper bean
      • aweElementsDao

        @Bean
        @ConditionalOnMissingBean
        public AweElementsDao aweElementsDao​(XStreamSerializer serializer,
                                             BaseConfigProperties baseConfigProperties)
        Awe Elements DAO
        Parameters:
        serializer - XStream serializer
        baseConfigProperties - Base config properties
        Returns:
        Awe Elements bean
      • initialLoadDao

        @Bean
        @ConditionalOnMissingBean
        public InitialLoadDao initialLoadDao​(QueryService queryService)
        Initial load DAO
        Parameters:
        queryService - Query service
        Returns:
        Initial load DATA ACCESS OBJECT
      • queryUtil

        @Bean
        @ConditionalOnMissingBean
        public QueryUtil queryUtil​(BaseConfigProperties baseConfigProperties,
                                   DatabaseConfigProperties databaseConfigProperties)
        Query utilities
        Parameters:
        baseConfigProperties - Base config properties
        databaseConfigProperties - Database config properties
        Returns:
        Query utilities bean
      • dataListService

        @Bean
        @ConditionalOnMissingBean
        public DataListService dataListService​(org.springframework.core.convert.ConversionService conversionService)
        DataList Service bean
        Parameters:
        conversionService - Conversion service
        Returns:
        DataList Service bean
      • launcherService

        @Bean
        @ConditionalOnMissingBean
        public LauncherService launcherService()
        Launcher service
        Returns:
        Launcher service
      • propertyService

        @Bean
        @ConditionalOnMissingBean
        public PropertyService propertyService​(QueryService queryService,
                                               org.springframework.core.env.ConfigurableEnvironment configurableEnvironment,
                                               DatabaseConfigProperties databaseConfigProperties)
        Property service
        Parameters:
        queryService - Query service
        configurableEnvironment - Configurable environment
        databaseConfigProperties - Database configuration properties
        Returns:
        Property service bean
      • initService

        @Bean
        @ConditionalOnMissingBean
        public InitService initService​(LauncherService launcherService)
        Init service
        Parameters:
        launcherService - Launcher service
        Returns:
        Init service bean
      • actionService

        @Bean
        @ConditionalOnMissingBean
        public ActionService actionService​(LauncherService launcherService,
                                           BaseConfigProperties baseConfigProperties)
        Action service
        Parameters:
        launcherService - Launcher service
        baseConfigProperties - Base configuration properties
        Returns:
        Action service bean
      • queryService

        @Bean
        @ConditionalOnMissingBean
        public QueryService queryService​(QueryLauncher queryLauncher,
                                         QueryUtil queryUtil)
        Query service
        Parameters:
        queryLauncher - Query launcher
        queryUtil - Query utilities
        Returns:
        Query service bean
      • maintainService

        @Bean
        @ConditionalOnMissingBean
        public MaintainService maintainService​(MaintainLauncher maintainLauncher,
                                               AccessService accessService,
                                               QueryUtil queryUtil,
                                               DatabaseConfigProperties databaseConfigProperties)
        Maintain service
        Parameters:
        maintainLauncher - Maintain launcher
        accessService - Access service
        queryUtil - Query utilities
        databaseConfigProperties - Database configuration properties
        Returns:
        Maintain service bean
      • menuService

        @Bean
        @ConditionalOnMissingBean
        public MenuService menuService​(QueryService queryService,
                                       ScreenRestrictionGenerator screenRestrictionGenerator,
                                       ScreenComponentGenerator screenComponentGenerator,
                                       InitialLoadDao initialLoadDao,
                                       BaseConfigProperties baseConfigProperties,
                                       SecurityConfigProperties securityConfigProperties)
        Menu service
        Parameters:
        queryService - Query service
        screenRestrictionGenerator - Screen Restriction generator
        screenComponentGenerator - Screen component generator
        initialLoadDao - Initial load service
        baseConfigProperties - Base configuration properties
        securityConfigProperties - Security configuration properties
        Returns:
        Menu service bean
      • screenService

        @Bean
        @ConditionalOnMissingBean
        public ScreenService screenService​(MenuService menuService,
                                           MaintainService maintainService,
                                           TemplateService templateService,
                                           ScreenComponentGenerator screenComponentGenerator,
                                           org.springframework.context.ApplicationEventPublisher eventPublisher)
        Screen service
        Parameters:
        menuService - Menu service
        maintainService - Maintain service
        templateService - Template service
        screenComponentGenerator - Screen component generator
        Returns:
        Screen service bean
      • fileService

        @Bean
        @ConditionalOnMissingBean
        public FileService fileService​(BroadcastService broadcastService,
                                       AweRequest request,
                                       BaseConfigProperties baseConfigProperties,
                                       EncodeService encodeService)
        File service
        Parameters:
        broadcastService - Broadcast service
        request - Request
        baseConfigProperties - Base configuration properties
        encodeService - Encode service
        Returns:
        File service bean
      • localeService

        @Bean
        @ConditionalOnMissingBean
        public LocaleService localeService()
        Locale service
        Returns:
        Locale service bean
      • logService

        @Bean
        @ConditionalOnMissingBean
        public LogService logService​(QueryUtil queryUtil,
                                     BaseConfigProperties baseConfigProperties)
        Log service
        Parameters:
        queryUtil - Query utilities
        baseConfigProperties - Base configuration properties
        Returns:
        Log service bean
      • reportService

        @Bean
        @ConditionalOnMissingBean
        public ReportService reportService​(QueryService queryService,
                                           MenuService menuService,
                                           ReportGenerator reportGenerator,
                                           BaseConfigProperties baseConfigProperties)
        Report service
        Parameters:
        queryService - Query service
        menuService - Menu service
        reportGenerator - Report generator
        baseConfigProperties - Base config properties
        Returns:
        Report service bean
      • printerService

        @Bean
        @ConditionalOnMissingBean
        public PrinterService printerService()
        Printer service
        Returns:
        Printer service bean
      • systemService

        @Bean
        @ConditionalOnMissingBean
        public SystemService systemService()
        System service
        Returns:
        System service bean
      • chartService

        @Bean
        @ConditionalOnMissingBean
        public ChartService chartService​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                         BaseConfigProperties baseConfigProperties)
        ChartService service
        Parameters:
        objectMapper - Object mapper
        baseConfigProperties - Base config properties
        Returns:
        Chart service bean
      • queryLauncher

        @Bean
        @ConditionalOnMissingBean
        @Scope("prototype")
        public QueryLauncher queryLauncher()
        Query launcher
        Returns:
        Query launcher bean
      • maintainLauncher

        @Bean
        @ConditionalOnMissingBean
        @Scope("prototype")
        public MaintainLauncher maintainLauncher()
        Maintain launcher
        Returns:
        Maintain launcher bean
      • screenRestrictionGenerator

        @Bean
        @ConditionalOnMissingBean
        public ScreenRestrictionGenerator screenRestrictionGenerator()
        Screen restriction generator
        Returns:
        Screen restriction generator bean
      • screenConfigurationGenerator

        @Bean
        @ConditionalOnMissingBean
        public ScreenConfigurationGenerator screenConfigurationGenerator()
        Screen configuration generator
        Returns:
        Screen configuration generator bean
      • screenModelGenerator

        @Bean
        @ConditionalOnMissingBean
        public ScreenModelGenerator screenModelGenerator​(ScreenRestrictionGenerator screenRestrictionGenerator,
                                                         InitialLoadDao initialLoadDao,
                                                         BaseConfigProperties baseConfigProperties)
        Screen model generator
        Parameters:
        screenRestrictionGenerator - Screen restriction generator
        initialLoadDao - Initial load service
        baseConfigProperties - Base config properties
        Returns:
        Screen model generator bean
      • screenComponentGenerator

        @Bean
        @ConditionalOnMissingBean
        public ScreenComponentGenerator screenComponentGenerator​(AweRequest request,
                                                                 ScreenModelGenerator screenModelGenerator,
                                                                 ScreenConfigurationGenerator screenConfigurationGenerator,
                                                                 InitialLoadDao initialLoadDao,
                                                                 AweElementsDao aweElementsDao,
                                                                 BaseConfigProperties baseConfigProperties)
        Screen component generator
        Parameters:
        request - Request
        screenModelGenerator - Screen model
        screenConfigurationGenerator - Screen configuration
        initialLoadDao - Initial load service
        aweElementsDao - AWE Elements DAO
        baseConfigProperties - Base config properties
        Returns:
        Screen component generator bean
      • reportGenerator

        @Bean
        @ConditionalOnMissingBean
        public ReportGenerator reportGenerator​(ReportDesigner reportDesigner,
                                               com.almis.ade.api.ADE ade,
                                               BaseConfigProperties baseConfigProperties)
        Report generator
        Parameters:
        reportDesigner - reportDesigner Report designer
        ade - ADE Api
        baseConfigProperties - Base config properties
        Returns:
        Report generator bean
      • reportDesigner

        @Bean
        @ConditionalOnMissingBean
        public ReportDesigner reportDesigner​(QueryService queryService,
                                             com.fasterxml.jackson.databind.ObjectMapper mapper,
                                             BaseConfigProperties baseConfigProperties)
        Report designer constructor
        Parameters:
        queryService - Query service
        mapper - Object mapper
        baseConfigProperties - Base config properties
        Returns:
        Report designer bean
      • javaConnector

        @Bean
        @ConditionalOnMissingBean
        public JavaConnector javaConnector()
        Java connector
        Returns:
        Java connector bean
      • microserviceConnector

        @Bean
        @ConditionalOnMissingBean
        public MicroserviceConnector microserviceConnector​(org.springframework.http.client.ClientHttpRequestFactory requestFactory,
                                                           QueryUtil queryUtil,
                                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                           RestConfigProperties restConfigProperties)
        Microservice connector
        Parameters:
        requestFactory - Request factory
        queryUtil - Query utilities
        objectMapper - Object mapper
        Returns:
        Microservice connector bean
      • restConnector

        @Bean
        @ConditionalOnMissingBean
        public RestConnector restConnector​(org.springframework.http.client.ClientHttpRequestFactory requestFactory,
                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                           RestConfigProperties restConfigProperties)
        REST connector
        Parameters:
        requestFactory - Request factory
        objectMapper - Object mapper
        restConfigProperties - Rest config properties
        Returns:
        REST connector bean
      • enumQueryConnector

        @Bean
        @ConditionalOnMissingBean
        public EnumQueryConnector enumQueryConnector​(QueryUtil queryUtil,
                                                     BaseConfigProperties baseConfigProperties,
                                                     AweElements elements,
                                                     NumericService numericService,
                                                     EncodeService encodeService)
        EnumQuery connector
        Parameters:
        queryUtil - Query utilities
        baseConfigProperties - Base configuration properties
        elements - AWE elements
        numericService - Numeric service
        encodeService - Encode service
        Returns:
        EnumQuery connector bean
      • serviceQueryConnector

        @Bean
        @ConditionalOnMissingBean
        public ServiceQueryConnector serviceQueryConnector​(QueryUtil queryUtil,
                                                           BaseConfigProperties baseConfigProperties,
                                                           AweElements elements,
                                                           NumericService numericService,
                                                           EncodeService encodeService)
        Service Query connector
        Parameters:
        queryUtil - Query utilities
        baseConfigProperties - Base configuration properties
        elements - AWE elements
        numericService - Numeric service
        encodeService - Encode service
        Returns:
        Service Query connector bean
      • serviceMaintainConnector

        @Bean
        @ConditionalOnMissingBean
        public ServiceMaintainConnector serviceMaintainConnector()
        Service Maintain connector
        Returns:
        Service Maintain connector bean
      • dataListBuilder

        @Bean
        @Scope("prototype")
        public DataListBuilder dataListBuilder()
        Data list builder
        Returns:
        Data list builder bean
      • enumBuilder

        @Bean
        @Scope("prototype")
        public EnumBuilder enumBuilder()
        Enum builder
        Returns:
        Enum builder bean
      • serviceBuilder

        @Bean
        @Scope("prototype")
        public ServiceBuilder serviceBuilder​(LauncherService launcherService,
                                             QueryUtil queryUtil)
        Service builder
        Parameters:
        launcherService - Launcher service
        queryUtil - QueryUtil service
        Returns:
        Service builder bean
      • aweLoggingFilter

        @Bean
        public AweLoggingFilter aweLoggingFilter()
        Awe logging filter
        Returns:
        servlet filter
      • aweMDCTaskDecorator

        @Bean
        public AweMDCTaskDecorator aweMDCTaskDecorator()
        Awe MDC Task decorator
        Returns:
        awe MDC task decorator