public class EchoBaseApplicationListener extends Object implements javax.servlet.ServletContextListener
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
Logger.
|
| Constructor and Description |
|---|
EchoBaseApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
protected void |
copyDriverFiles(EchoBaseServiceContext serviceContext) |
protected void |
initInternalDatabase(EchoBaseApplicationContext context,
EchoBaseServiceContext serviceContext)
Init the internal database, says :
If no schema found or if asked to updateSchema using the
updateSchema configuration option is on.
If no user found is db, create a administrator user
admin/admin
|
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected void initInternalDatabase(EchoBaseApplicationContext context, EchoBaseServiceContext serviceContext) throws org.nuiton.topia.TopiaException
updateSchema configuration option is on.admin/admincontext - application context where to store global internal db root contextorg.nuiton.topia.TopiaExceptionprotected void copyDriverFiles(EchoBaseServiceContext serviceContext) throws IOException
IOExceptionCopyright © 2011-2013 Ifremer. All Rights Reserved.