|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sas.framework.expojo.servlet.ExpojoServletContextListener
public abstract class ExpojoServletContextListener
Implements the ServletContextListener interface to initialize the exPOJO framework. It is designed to be extended by an application specific class. Only two methods in the application specific class require overriding: createPersistenceProviderFactory and addComponents. You may also like to optionally override establishGenesisObjects.
createPersistenceProviderFactory(ServletContextEvent),
addComponents(com.sas.framework.expojo.ModelExposer),
establishGenesisObjects()| Field Summary | |
|---|---|
static ExpojoServletContextListener |
me
Returns this singleton. |
protected PersistenceProviderFactory |
persistenceProviderFactory
|
| Constructor Summary | |
|---|---|
ExpojoServletContextListener()
Sets 'me' to this. |
|
| Method Summary | |
|---|---|
abstract void |
addComponents(ModelExposer modelExposer)
Adds service and repository components to the ModelExposer. |
void |
contextDestroyed(ServletContextEvent event)
Called when the application context is being destroyed. |
void |
contextInitialized(ServletContextEvent event)
Performs application initialisation and establishment of the PersistenceProviderFactory. |
ModelExposer |
createModelExposer()
Creates a ModelExposer. |
abstract PersistenceProviderFactory |
createPersistenceProviderFactory(ServletContextEvent event)
Overridden in a derived class to create the PersistenceProviderFactory. |
void |
destroyApplication()
Called by the framework to allow application specific destruction behaviour. |
void |
establishGenesisObjects()
Genesis objects are the essential, persistent, system objects that must be created right at the beginning of the life of a new system and from which all other objects will go forth and multiply. |
static ExpojoServletContextListener |
get()
Returns this singleton object. |
PersistenceProviderFactory |
getPersistenceProviderFactory()
Returns persistenceProviderFactory. |
void |
initApplication()
Overridden in derived classes to perform any applicaiton specific initialization, if required, after the framework initialization has taken place. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static transient ExpojoServletContextListener me
protected PersistenceProviderFactory persistenceProviderFactory
| Constructor Detail |
|---|
public ExpojoServletContextListener()
| Method Detail |
|---|
public void contextDestroyed(ServletContextEvent event)
public void destroyApplication()
public void initApplication()
public abstract void addComponents(ModelExposer modelExposer)
public ModelExposer createModelExposer()
public void establishGenesisObjects()
public void contextInitialized(ServletContextEvent event)
public static ExpojoServletContextListener get()
public PersistenceProviderFactory getPersistenceProviderFactory()
public abstract PersistenceProviderFactory createPersistenceProviderFactory(ServletContextEvent event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||