Class RegionCollector
java.lang.Object
org.springframework.data.gemfire.config.schema.support.RegionCollector
- All Implemented Interfaces:
SchemaObjectCollector<org.apache.geode.cache.Region>
- Direct Known Subclasses:
ClientRegionCollector
public class RegionCollector
extends Object
implements SchemaObjectCollector<org.apache.geode.cache.Region>
The
RegionCollector
class is an implementation of the SchemaObjectCollector
that is capable of
inspecting a context and finding all Region
schema object instances that have been declared in that context.- Since:
- 2.0.0
- See Also:
-
GemFireCache
Region
ApplicationContext
SchemaObjectCollector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.geode.cache.Region>
collectFrom
(org.apache.geode.cache.GemFireCache gemfireCache) Collects all schema objects of typeSchemaObjectCollector
defined in theGemFireCache
.Set<org.apache.geode.cache.Region>
collectFrom
(org.springframework.context.ApplicationContext applicationContext) Collects all schema objects of typeSchemaObjectCollector
declared in the givenApplicationContext
.
-
Constructor Details
-
RegionCollector
public RegionCollector()
-
-
Method Details
-
collectFrom
public Set<org.apache.geode.cache.Region> collectFrom(org.springframework.context.ApplicationContext applicationContext) Description copied from interface:SchemaObjectCollector
Collects all schema objects of typeSchemaObjectCollector
declared in the givenApplicationContext
.- Specified by:
collectFrom
in interfaceSchemaObjectCollector<org.apache.geode.cache.Region>
- Parameters:
applicationContext
- SpringApplicationContext
from which to collect schema objects of typeSchemaObjectCollector
.- Returns:
- a
Set
of all schema objects of typeSchemaObjectCollector
declared in theApplicationContext
; returns an emptySet
if no schema object of typeSchemaObjectCollector
could be found. - See Also:
-
ApplicationContext
Iterable
-
collectFrom
public Set<org.apache.geode.cache.Region> collectFrom(org.apache.geode.cache.GemFireCache gemfireCache) Description copied from interface:SchemaObjectCollector
Collects all schema objects of typeSchemaObjectCollector
defined in theGemFireCache
.- Specified by:
collectFrom
in interfaceSchemaObjectCollector<org.apache.geode.cache.Region>
- Parameters:
gemfireCache
-GemFireCache
from which to collect schema objects of typeSchemaObjectCollector
.- Returns:
- a
Set
of all schema objects of typeSchemaObjectCollector
defined in theGemFireCache
; returns an emptySet
if no schema object of typeSchemaObjectCollector
could be found. - See Also:
-
GemFireCache
Iterable
-