ObjectDB ObjectDB

addInstanceLifecycleListener(listener, classes) - JDO PersistenceManager's method

void addInstanceLifecycleListener(
  InstanceLifecycleListener listener,
  Class... classes

Adds the listener instance to the list of lifecycle event listeners. The classes parameter identifies all of the classes of interest. If the classes parameter is specified as null, events for all persistent classes and interfaces will be sent to listenerInstance.

The listenerInstance will be called for each event for which it implements the corresponding listenerInstance interface.

listener - the lifecycle listener
classes - the classes of interest to the listener
JDO 2.0