Class LuceneServiceFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<LuceneService>
org.springframework.data.gemfire.search.lucene.LuceneServiceFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,FactoryBean<LuceneService>
,InitializingBean
public class LuceneServiceFactoryBean
extends AbstractFactoryBeanSupport<LuceneService>
implements InitializingBean
- Since:
- 1.1.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected GemFireCache
getCache()
Returns a reference to the singleGemFireCache
instance.Class<?>
protected LuceneService
resolveLuceneService
(GemFireCache gemFireCache) Attempts to resolve the Singleton instance of theGemFireCache
LuceneService
from given theGemFireCache
.void
setCache
(GemFireCache gemfireCache) Sets a reference to the singleGemFireCache
instance.Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLog, getOptionalLog, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
LuceneServiceFactoryBean
public LuceneServiceFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
resolveLuceneService
Attempts to resolve the Singleton instance of theGemFireCache
LuceneService
from given theGemFireCache
.- Parameters:
gemFireCache
-GemFireCache
used to resolve theLuceneService
instance.- Returns:
- a single instance of the GemFire
LuceneService
. - See Also:
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<LuceneService>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<LuceneService>
-
setCache
Sets a reference to the singleGemFireCache
instance.- Parameters:
gemfireCache
-GemFireCache
reference.- See Also:
-
getCache
Returns a reference to the singleGemFireCache
instance.- Returns:
- a reference to the single
GemFireCache
instance. - See Also:
-