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_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected GemFireCachegetCache()Returns a reference to the singleGemFireCacheinstance.Class<?>protected LuceneServiceresolveLuceneService(GemFireCache gemFireCache) Attempts to resolve the Singleton instance of theGemFireCacheLuceneServicefrom given theGemFireCache.voidsetCache(GemFireCache gemfireCache) Sets a reference to the singleGemFireCacheinstance.Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
LuceneServiceFactoryBean
public LuceneServiceFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
resolveLuceneService
Attempts to resolve the Singleton instance of theGemFireCacheLuceneServicefrom given theGemFireCache.- Parameters:
gemFireCache-GemFireCacheused to resolve theLuceneServiceinstance.- Returns:
- a single instance of the GemFire
LuceneService. - See Also:
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<LuceneService>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<LuceneService>
-
setCache
Sets a reference to the singleGemFireCacheinstance.- Parameters:
gemfireCache-GemFireCachereference.- See Also:
-
getCache
Returns a reference to the singleGemFireCacheinstance.- Returns:
- a reference to the single
GemFireCacheinstance. - See Also:
-