72 words

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

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.