com.hazelcast.hibernate.instance
public final class HazelcastAccessor extends Object
Modifier and Type | Method and Description |
---|---|
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 . |
public static HazelcastInstance getHazelcastInstance(org.hibernate.Session session)
HazelcastInstance
from Session
.session
- HazelcastInstance
or null if an error occurs.public static HazelcastInstance getHazelcastInstance(org.hibernate.SessionFactory sessionFactory)
HazelcastInstance
from SessionFactory
.sessionFactory
- HazelcastInstance
or null if an error occurs.public static HazelcastInstance getHazelcastInstance(SessionFactoryImplementor sessionFactory)
HazelcastInstance
from SessionFactoryImplementor
.sessionFactory
- HazelcastInstance
or null if an error occurs.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.