com.hazelcast.hibernate.instance
Class HazelcastAccessor

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

public final class HazelcastAccessor
extends Object

Access underlying HazelcastInstance using Hibernate SessionFactory


Method Summary
static HazelcastInstance getHazelcastInstance(org.hibernate.Session session)
          Tries to extract HazelcastInstance from Session.
static HazelcastInstance getHazelcastInstance(org.hibernate.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(org.hibernate.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(org.hibernate.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 © 2015 Hazelcast, Inc.. All Rights Reserved.