Class HazelcastInstanceFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<com.hazelcast.core.HazelcastInstance>
-
- org.craftercms.studio.impl.v2.utils.spring.HazelcastInstanceFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<com.hazelcast.core.HazelcastInstance>
,org.springframework.beans.factory.InitializingBean
public class HazelcastInstanceFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<com.hazelcast.core.HazelcastInstance>
SpringFactoryBean
used to create aHazelcastInstance
using a configuration file in a SpringResource
. The factory bean will also shutdown the instance onAbstractFactoryBean.destroy()
.- Since:
- 3.1.6
- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description HazelcastInstanceFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.hazelcast.core.HazelcastInstance
createInstance()
protected void
destroyInstance(com.hazelcast.core.HazelcastInstance instance)
Class<?>
getObjectType()
void
setConfigLocation(org.springframework.core.io.Resource configLocation)
-
-
-
Method Detail
-
setConfigLocation
public void setConfigLocation(org.springframework.core.io.Resource configLocation)
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<com.hazelcast.core.HazelcastInstance>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<com.hazelcast.core.HazelcastInstance>
-
createInstance
protected com.hazelcast.core.HazelcastInstance createInstance() throws Exception
- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<com.hazelcast.core.HazelcastInstance>
- Throws:
Exception
-
-