Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <>.
 package org.hibernate.ogm.dialect.eventstate.impl;
Callback for event cycle scoped state objects.

State is solely to be kept in the produced state objects, lifecycle implementations themselves should preferably be stateless and need to be thread-safe.

Gunnar Morling
public interface EventStateLifecycle<T> {

Creates a new instance of the represented event state type. Invoked by EventContextManager in case a event state type is accessed for the first time during a given event cycle.
Invoked by EventContextManager if an event cycle is finished.
	void onFinish(T stateSessionImplementor session);
New to GrepCode? Check out our FAQ X