Rev 106 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 106 | espaco | 1 | package br.com.ec.domain.service.banco.impl; |
| 2 | |||
| 3 | import org.springframework.beans.factory.annotation.Autowired; |
||
| 4 | import org.springframework.stereotype.Service; |
||
| 5 | |||
| 195 | espaco | 6 | import br.com.ec.core.generic.AbstractService; |
| 7 | import br.com.ec.core.generic.GenericRepository; |
||
| 8 | import br.com.ec.core.validador.Validador; |
||
| 106 | espaco | 9 | import br.com.ec.domain.model.Banco; |
| 10 | import br.com.ec.domain.service.banco.BancoService; |
||
| 11 | import br.com.ec.infrastructure.repository.BancoRepository; |
||
| 12 | |||
| 13 | @Service |
||
| 14 | public class BancoServiceImpl extends AbstractService<Banco> implements BancoService { |
||
| 15 | |||
| 16 | private BancoRepository bancoRepository; |
||
| 17 | |||
| 18 | @Autowired |
||
| 19 | public BancoServiceImpl(Validador validador, BancoRepository bancoRepository) { |
||
| 20 | super(validador); |
||
| 21 | this.bancoRepository = bancoRepository; |
||
| 22 | } |
||
| 23 | |||
| 24 | @Override |
||
| 25 | protected GenericRepository<Banco> getRepository() { |
||
| 26 | return bancoRepository; |
||
| 27 | } |
||
| 28 | |||
| 29 | } |