public class BeanFactoryRegionResolver extends AbstractCachingRegionResolver implements BeanFactoryAware
Region
,
BeanFactory
,
BeanFactoryAware
,
RegionResolver
,
AbstractCachingRegionResolver
Constructor and Description |
---|
BeanFactoryRegionResolver(BeanFactory beanFactory)
Constructs a new instance of
BeanFactoryRegionResolver initialized with the given BeanFactory . |
Modifier and Type | Method and Description |
---|---|
protected <K,V> org.apache.geode.cache.Region<K,V> |
doResolve(String regionName)
|
protected BeanFactory |
getBeanFactory()
Returns the configured reference to the
BeanFactory used to resolve cache Regions . |
void |
setBeanFactory(BeanFactory beanFactory)
Sets a reference to the
BeanFactory used to resolve cache Regions . |
afterRegionDestroy, resolve
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionInvalidate, afterRegionLive, afterUpdate, close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
require
public BeanFactoryRegionResolver(BeanFactory beanFactory)
BeanFactoryRegionResolver
initialized with the given BeanFactory
.beanFactory
- BeanFactory
used to resolve cache Regions
.IllegalArgumentException
- if BeanFactory
is null.BeanFactory
,
setBeanFactory(BeanFactory)
public final void setBeanFactory(@NonNull BeanFactory beanFactory) throws BeansException
BeanFactory
used to resolve cache Regions
.setBeanFactory
in interface BeanFactoryAware
beanFactory
- BeanFactory
used to resolve cache Regions
.IllegalArgumentException
- if BeanFactory
is null.BeansException
- if configuration of the BeanFactory
fails.BeanFactory
@NonNull protected BeanFactory getBeanFactory()
BeanFactory
used to resolve cache Regions
.BeanFactory
.BeanFactory
@Nullable protected <K,V> org.apache.geode.cache.Region<K,V> doResolve(@Nullable String regionName)
AbstractCachingRegionResolver
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.