com.caucho.amber.manager
Class PersistenceEnvironmentListener

java.lang.Object
  extended by com.caucho.amber.manager.PersistenceEnvironmentListener
All Implemented Interfaces:
AddLoaderListener, java.util.EventListener

public class PersistenceEnvironmentListener
extends java.lang.Object
implements AddLoaderListener

Listener for environment start to detect and load persistence.xml


Constructor Summary
PersistenceEnvironmentListener()
           
 
Method Summary
 void addLoader(EnvironmentClassLoader loader)
          Handles the case where the environment is starting (after init).
 void environmentStop(EnvironmentClassLoader loader)
          Handles the case where the environment is stopping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceEnvironmentListener

public PersistenceEnvironmentListener()
Method Detail

addLoader

public void addLoader(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).

Specified by:
addLoader in interface AddLoaderListener

environmentStop

public void environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping