public final class ComposableSchemaObjectCollector extends Object implements SchemaObjectCollector<Object>, Iterable<SchemaObjectCollector<?>>
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.SchemaObjectCollector
Modifier and Type | Method and Description |
---|---|
Iterable<Object> |
collectFrom(ApplicationContext applicationContext)
Collects all schema objects of type
T declared in the given ApplicationContext . |
Iterable<Object> |
collectFrom(org.apache.geode.cache.GemFireCache gemfireCache)
Collects all schema objects of type
T defined in the GemFireCache . |
static SchemaObjectCollector<?> |
compose(Iterable<SchemaObjectCollector<?>> schemaObjectCollectors) |
static SchemaObjectCollector<?> |
compose(SchemaObjectCollector<?>... schemaObjectCollectors) |
Iterator<SchemaObjectCollector<?>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Nullable public static SchemaObjectCollector<?> compose(SchemaObjectCollector<?>... schemaObjectCollectors)
@Nullable public static SchemaObjectCollector<?> compose(Iterable<SchemaObjectCollector<?>> schemaObjectCollectors)
public Iterable<Object> collectFrom(ApplicationContext applicationContext)
SchemaObjectCollector
T
declared in the given ApplicationContext
.collectFrom
in interface SchemaObjectCollector<Object>
applicationContext
- Spring ApplicationContext
from which to collect schema objects
of type T
.Set
of all schema objects of type T
declared in the ApplicationContext
;
returns an empty Set
if no schema object of type T
could be found.ApplicationContext
,
Iterable
public Iterable<Object> collectFrom(org.apache.geode.cache.GemFireCache gemfireCache)
SchemaObjectCollector
T
defined in the GemFireCache
.collectFrom
in interface SchemaObjectCollector<Object>
gemfireCache
- GemFireCache
from which to collect schema objects of type T
.Set
of all schema objects of type T
defined in the GemFireCache
;
returns an empty Set
if no schema object of type T
could be found.GemFireCache
,
Iterable
public Iterator<SchemaObjectCollector<?>> iterator()
iterator
in interface Iterable<SchemaObjectCollector<?>>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.