@Component public class DBInitApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Constructor and Description |
|---|
DBInitApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isDBEmpty() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent arg0) |
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public void setEntityManager(javax.persistence.EntityManager entityManager)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent arg0)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>protected boolean isDBEmpty()
Apache Fediz