com.hazelcast.hibernate.instance
Class HazelcastAccessor

java.lang.Object
  extended by com.hazelcast.hibernate.instance.HazelcastAccessor

public abstract class HazelcastAccessor
extends Object

Access underlying HazelcastInstance using Hibernate SessionFactory


Method Summary
static HazelcastInstance getHazelcastInstance(Session session)
          Tries to extract HazelcastInstance from Session.
static HazelcastInstance getHazelcastInstance(SessionFactory sessionFactory)
          Tries to extract HazelcastInstance from SessionFactory.
static HazelcastInstance getHazelcastInstance(SessionFactoryImplementor sessionFactory)
          Tries to extract HazelcastInstance from SessionFactoryImplementor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHazelcastInstance

public static HazelcastInstance getHazelcastInstance(Session session)
Tries to extract HazelcastInstance from Session.

Parameters:
session -
Returns:
Currently used HazelcastInstance or null if an error occurs.

getHazelcastInstance

public static HazelcastInstance getHazelcastInstance(SessionFactory sessionFactory)
Tries to extract HazelcastInstance from SessionFactory.

Parameters:
sessionFactory -
Returns:
Currently used HazelcastInstance or null if an error occurs.

getHazelcastInstance

public static HazelcastInstance getHazelcastInstance(SessionFactoryImplementor sessionFactory)
Tries to extract HazelcastInstance from SessionFactoryImplementor.

Parameters:
sessionFactory -
Returns:
currently used HazelcastInstance or null if an error occurs.


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.