|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zeroexchange.dao.importing.DatabaseInitializer
public class DatabaseInitializer
Service initializes database at startup if it needed.
| Constructor Summary | |
|---|---|
DatabaseInitializer()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Is called on spring context startup. |
protected boolean |
isDatabaseInitialized()
Returns true if the database is initialized. |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
|
void |
setScriptsDir(File scriptsDir)
|
void |
setUploadExampleData(boolean uploadExampleData)
|
void |
setXmlScript2RepresentationClass(Map<String,Class> xmlScript2RepresentationClass)
Sets the xml script. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseInitializer()
| Method Detail |
|---|
public void setXmlScript2RepresentationClass(Map<String,Class> xmlScript2RepresentationClass)
public void setUploadExampleData(boolean uploadExampleData)
uploadExampleData - the uploadExampleData to setpublic void setScriptsDir(File scriptsDir)
baseScript - the baseScript to set
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected boolean isDatabaseInitialized()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||