org.chromattic.api.event
Interface LifeCycleListener

All Superinterfaces:
EventListener

public interface LifeCycleListener
extends EventListener

Enables to be aware of the life cycle of the object managed by chromattic with respect to the underlying JCR session. Those life cycle callbacks does not guarantees that they will translate to operations with the persitence storage as there are not guarantees that the session will be saved.

Version:
$Revision$
Author:
Julien Viet

Method Summary
 void added(String id, String path, String name, Object o)
          An object is added to the session.
 void created(Object o)
          An object is created.
 void loaded(String id, String path, String name, Object o)
          An object is loaded from the session.
 void removed(String id, String path, String name, Object o)
          An object is removed from the session.
 

Method Detail

created

void created(Object o)
An object is created.

Parameters:
o - the created object

loaded

void loaded(String id,
            String path,
            String name,
            Object o)
An object is loaded from the session.

Parameters:
id - the id of the object
path - the path of the object
name - the name of the object
o - the object

added

void added(String id,
           String path,
           String name,
           Object o)
An object is added to the session.

Parameters:
id - the id of the object
path - the path of the object
name - the name of the object
o - the object

removed

void removed(String id,
             String path,
             String name,
             Object o)
An object is removed from the session.

Parameters:
id - the id of the object
path - the path of the object
name - the name of the object
o - the object


Copyright © 2009 eXo Platform SAS. All Rights Reserved.