org.compass.gps.device.hibernate.lifecycle
Interface HibernateEntityLifecycleInjector

All Known Implementing Classes:
DefaultHibernateEntityCollectionLifecycleInjector, DefaultHibernateEntityLifecycleInjector

public interface HibernateEntityLifecycleInjector

The lifecycle injector is responsible injected and removing lifecycle event listneres.

Author:
kimchy

Method Summary
 void injectLifecycle(SessionFactory sessionFactory, HibernateGpsDevice device)
          Injects a global lifecycle listener into the concrete SessionFactory implementation.
 void removeLifecycle(SessionFactory sessionFactory, HibernateGpsDevice device)
          Removes (if possible) lifecycle listeners injected using the inject method.
 

Method Detail

injectLifecycle

void injectLifecycle(SessionFactory sessionFactory,
                     HibernateGpsDevice device)
                     throws HibernateGpsDeviceException
Injects a global lifecycle listener into the concrete SessionFactory implementation.

Parameters:
sessionFactory - The SessionFactory to inject the global lifecycle to.
device - The Jpa device calling this injector
Throws:
HibernateGpsDeviceException

removeLifecycle

void removeLifecycle(SessionFactory sessionFactory,
                     HibernateGpsDevice device)
                     throws HibernateGpsDeviceException
Removes (if possible) lifecycle listeners injected using the inject method.

Parameters:
sessionFactory - The SessionFactory to remove lifecycle from
device - The Jpa device calling
Throws:
HibernateGpsDevice
HibernateGpsDeviceException


Copyright (c) 2004-2008 The Compass Project.