Class ComposableSchemaObjectCollector
java.lang.Object
org.springframework.data.gemfire.config.schema.support.ComposableSchemaObjectCollector
- All Implemented Interfaces:
Iterable<SchemaObjectCollector<?>>
,SchemaObjectCollector<Object>
public final class ComposableSchemaObjectCollector
extends Object
implements SchemaObjectCollector<Object>, Iterable<SchemaObjectCollector<?>>
The
ComposableSchemaObjectCollector
class is a SchemaObjectCollector
implementation composed of
multiple SchemaObjectCollector
objects wrapped in a facade and treated like a single
SchemaObjectCollector
using the Composite Software Design Pattern.- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncollectFrom
(org.apache.geode.cache.GemFireCache gemfireCache) Collects all schema objects of typeSchemaObjectCollector
defined in theGemFireCache
.collectFrom
(org.springframework.context.ApplicationContext applicationContext) Collects all schema objects of typeSchemaObjectCollector
declared in the givenApplicationContext
.static SchemaObjectCollector<?>
compose
(Iterable<SchemaObjectCollector<?>> schemaObjectCollectors) static SchemaObjectCollector<?>
compose
(SchemaObjectCollector<?>... schemaObjectCollectors) iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
compose
@Nullable public static SchemaObjectCollector<?> compose(SchemaObjectCollector<?>... schemaObjectCollectors) -
compose
@Nullable public static SchemaObjectCollector<?> compose(Iterable<SchemaObjectCollector<?>> schemaObjectCollectors) -
collectFrom
public Iterable<Object> 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<Object>
- 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
Description copied from interface:SchemaObjectCollector
Collects all schema objects of typeSchemaObjectCollector
defined in theGemFireCache
.- Specified by:
collectFrom
in interfaceSchemaObjectCollector<Object>
- 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
-
iterator
- Specified by:
iterator
in interfaceIterable<SchemaObjectCollector<?>>
-