/** * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface. * Copyright (C) 2012 Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ /******************************************************************************\ * * This product was developed by * * SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), * * a government company established under Brazilian law (5.615/70), * at Department of Development of Porto Alegre. * \******************************************************************************/ package serpro.mailarchiver.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import serpro.mailarchiver.service.find.FBinaryBody; import serpro.mailarchiver.service.find.FFolder; import serpro.mailarchiver.service.find.FMessage; import serpro.mailarchiver.service.find.FTextBody; import serpro.mailarchiver.service.find.FUser; import serpro.mailarchiver.util.Logger; @Configuration public class FinderServicesConfig { private static final Logger log = Logger.getLocalLogger(); @Autowired private InfrastructureConfig infrastructureConfig; public FinderServicesConfig() { log.debug("Instanciando configuration bean FinderServicesConfig"); } @Bean public FFolder folderFinder() { log.debug("Instanciando bean folderFinder"); FFolder folderFinder = new FFolder(); log.debug("Bean folderFinder configurado"); return folderFinder; } @Bean public FMessage messageFinder() { log.debug("Instanciando bean messageFinder"); FMessage messageFinder = new FMessage(); log.debug("Bean messageFinder configurado"); return messageFinder; } @Bean public FBinaryBody binaryBodyFinder() { log.debug("Instanciando bean binaryBodyFinder"); FBinaryBody binaryBodyFinder = new FBinaryBody(); log.debug("Bean binaryBodyFinder configurado"); return binaryBodyFinder; } @Bean public FTextBody textBodyFinder() { log.debug("Instanciando bean textBodyFinder"); FTextBody textBodyFinder = new FTextBody(); log.debug("Bean textBodyFinder configurado"); return textBodyFinder; } @Bean public FUser userFinder() { log.debug("Instanciando bean userFinder"); FUser userFinder = new FUser(); log.debug("Bean userFinder configurado"); return userFinder; } }