public class IndexFactoryBean extends Object implements InitializingBean, FactoryBean<com.gemstone.gemfire.cache.query.Index>, BeanNameAware, BeanFactoryAware
BeanFactoryAware
,
BeanNameAware
,
FactoryBean
,
InitializingBean
,
IndexFactoryBean.IndexWrapper
,
RegionService
,
Index
,
QueryService
Modifier and Type | Class and Description |
---|---|
protected static class |
IndexFactoryBean.IndexWrapper |
Constructor and Description |
---|
IndexFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected BeanFactory |
getBeanFactory() |
com.gemstone.gemfire.cache.query.Index |
getObject() |
Class<?> |
getObjectType() |
protected boolean |
isDefine() |
boolean |
isSingleton() |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanName(String name) |
void |
setCache(com.gemstone.gemfire.cache.RegionService cache)
Sets the underlying cache used for creating indexes.
|
void |
setDefine(boolean define)
Sets a boolean condition to indicate whether the Index declared and defined by this FactoryBean will only be
defined initially, or defined and created.
|
void |
setExpression(String expression) |
void |
setFrom(String from) |
void |
setImports(String imports) |
void |
setName(String name) |
void |
setOverride(boolean override) |
void |
setQueryService(com.gemstone.gemfire.cache.query.QueryService service)
Sets the query service used for creating indexes.
|
void |
setType(IndexType indexType)
Sets the type of GemFire Index to create.
|
void |
setType(String type) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public com.gemstone.gemfire.cache.query.Index getObject()
getObject
in interface FactoryBean<com.gemstone.gemfire.cache.query.Index>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<com.gemstone.gemfire.cache.query.Index>
public boolean isSingleton()
isSingleton
in interface FactoryBean<com.gemstone.gemfire.cache.query.Index>
public void setCache(com.gemstone.gemfire.cache.RegionService cache)
cache
- cache used for creating indexes.public void setQueryService(com.gemstone.gemfire.cache.query.QueryService service)
service
- query service used for creating indexes.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
protected BeanFactory getBeanFactory()
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void setName(String name)
name
- the name to setpublic void setDefine(boolean define)
define
- a boolean value indicating the define or define/create status. If true, the Index declared
by this FactoryBean will only be defined initially and subsequently created when this SmartLifecycle bean
receives an appropriate callback from the Spring container; if false, the Index will be created immediately.protected boolean isDefine()
public void setExpression(String expression)
expression
- the expression to setpublic void setFrom(String from)
from
- the from to setpublic void setImports(String imports)
imports
- the imports to setpublic void setOverride(boolean override)
override
- the override to setpublic void setType(String type)
type
- the type to set