Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.map
Interface EntityListenerFactory

    public interface EntityListenerFactory

A factory used to create entity listeners. By default listeners are created using a noop constructor on the listener class, however if a user needs to customize listener creation process (e.g. perform dependency injection, etc.), a custom factory can be installed on the EntityResolver. EntityListenerFactory also supposrt defining listener intrerfaces, not just classes).

Since:
  3.0
Author:
  Andrus Adamchik

Method Summary
`Object` | `createListener(EntityListener listenerMapping, ObjEntity entity)` Creates an instance of entity listener of a given class.

Method Detail

### createListener

    Object createListener(EntityListener listenerMapping,
                          ObjEntity entity)

  Creates an instance of entity listener of a given class. "entity" parameter denotes ObjEntity for which the listener is installed. It is null if this is a default listener.

  Returns:
    a listener of the given class. May return null to indicate that a configured listener should be suppressed.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.