|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.gemfire.DeclarableSupport
public abstract class DeclarableSupport
Convenience class for Spring-aware GemFire Declarable components.
Provides a reference to the current Spring application context, e.g. for bean lookup or resource loading.
Note that in most cases, one can just declare the same components as Spring beans, through
RegionFactoryBean
which gives access to the full container capabilities and does not enforce the
Declarable
interface to be implemented.
Constructor Summary | |
---|---|
DeclarableSupport()
|
Method Summary | |
---|---|
void |
close()
|
protected BeanFactory |
getBeanFactory()
|
void |
init(Properties props)
This implementation uses this method as a lifecycle hook to initialize the bean factory locator. |
protected void |
initInstance(Properties props)
Initialize the current instance based on the given properties. |
void |
setFactoryKey(String key)
Sets the key under which the enclosing beanFactory can be found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeclarableSupport()
Method Detail |
---|
public final void init(Properties props)
init
in interface Declarable
setFactoryKey(String)
protected void initInstance(Properties props)
props
- protected BeanFactory getBeanFactory()
public void close()
close
in interface CacheCallback
public void setFactoryKey(String key)
key
- GemfireBeanFactoryLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |