Class ComposableSchemaObjectDefiner
java.lang.Object
org.springframework.data.gemfire.config.schema.support.ComposableSchemaObjectDefiner
- All Implemented Interfaces:
Iterable<SchemaObjectDefiner>
,SchemaObjectDefiner
public final class ComposableSchemaObjectDefiner
extends Object
implements SchemaObjectDefiner, Iterable<SchemaObjectDefiner>
ComposableSchemaObjectDefiner
is an implementation of SchemaObjectDefiner
as well as a composition of SchemaObjectInstanceHandlers
composed
using the Composite Software Design Pattern.- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaObjectDefiner
compose
(Iterable<SchemaObjectDefiner> schemaObjectDefiners) static SchemaObjectDefiner
compose
(SchemaObjectDefiner... schemaObjectDefiners) Optional<? extends SchemaObjectDefinition>
Returns aSet
ofschema object types
definable by this definer.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
Methods inherited from interface org.springframework.data.gemfire.config.schema.SchemaObjectDefiner
canDefine, canDefine, canDefine
-
Method Details
-
compose
-
compose
@Nullable public static SchemaObjectDefiner compose(Iterable<SchemaObjectDefiner> schemaObjectDefiners) -
getSchemaObjectTypes
Description copied from interface:SchemaObjectDefiner
Returns aSet
ofschema object types
definable by this definer.- Specified by:
getSchemaObjectTypes
in interfaceSchemaObjectDefiner
- Returns:
- a
Set
ofschema object types
definable by this definer. - See Also:
-
define
Description copied from interface:SchemaObjectDefiner
- Specified by:
define
in interfaceSchemaObjectDefiner
- Parameters:
schemaObject
-schema object
to define.- Returns:
- an
Optional
definition
for the givenschema object
instance. - See Also:
-
iterator
- Specified by:
iterator
in interfaceIterable<SchemaObjectDefiner>
-