com.caucho.env.jpa
Class ListenerPersistenceEnvironment

java.lang.Object
  extended by com.caucho.env.jpa.ListenerPersistenceEnvironment
All Implemented Interfaces:
AddLoaderListener, java.util.EventListener

public class ListenerPersistenceEnvironment
extends java.lang.Object
implements AddLoaderListener

Listener for environment start to detect and load persistence.xml


Constructor Summary
ListenerPersistenceEnvironment()
           
 
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
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean isEnhancer()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerPersistenceEnvironment

public ListenerPersistenceEnvironment()
Method Detail

isEnhancer

public boolean isEnhancer()
Specified by:
isEnhancer in interface AddLoaderListener

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


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object