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

Method
javax.jdo.PersistenceManager
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.

Parameters:
listener - the lifecycle listener
classes - the classes of interest to the listener
Since:
JDO 2.0