@Configuration @ComponentScan @EnableTransactionManagement public class SomaJobHistoryConsumer extends Object implements org.springframework.boot.ApplicationRunner
| Constructor and Description |
|---|
SomaJobHistoryConsumer() |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManagerFactory |
entityManagerFactory() |
static SomaJobHistoryConsumer |
getInstance() |
static void |
main(String[] args) |
void |
run(org.springframework.boot.ApplicationArguments args) |
br.pucrio.tecgraf.soma.serviceapi.ServiceContext |
serviceContext(String hibernateConfiguration) |
org.springframework.transaction.PlatformTransactionManager |
transactionManager(javax.persistence.EntityManagerFactory emf) |
public void run(org.springframework.boot.ApplicationArguments args)
run in interface org.springframework.boot.ApplicationRunnerpublic static SomaJobHistoryConsumer getInstance()
@Bean
public br.pucrio.tecgraf.soma.serviceapi.ServiceContext serviceContext(@Value(value="${hibernate-config}")
String hibernateConfiguration)
@Bean public javax.persistence.EntityManagerFactory entityManagerFactory()
@Bean public org.springframework.transaction.PlatformTransactionManager transactionManager(javax.persistence.EntityManagerFactory emf)
public static void main(String[] args)
Copyright © 2019. All rights reserved.