Package org.forgerock.opendj.config
Class SingletonRelationDefinition.Builder<C extends ConfigurationClient,S extends Configuration>
java.lang.Object
org.forgerock.opendj.config.RelationDefinition.AbstractBuilder<C,S,SingletonRelationDefinition<C,S>>
org.forgerock.opendj.config.SingletonRelationDefinition.Builder<C,S>
- Type Parameters:
C
- The type of client managed object configuration that this relation definition refers to.S
- The type of server managed object configuration that this relation definition refers to.
- Enclosing class:
- SingletonRelationDefinition<C extends ConfigurationClient,
S extends Configuration>
public static final class SingletonRelationDefinition.Builder<C extends ConfigurationClient,S extends Configuration>
extends RelationDefinition.AbstractBuilder<C,S,SingletonRelationDefinition<C,S>>
An interface for incrementally constructing singleton relation
definitions.
-
Constructor Summary
ConstructorDescriptionBuilder
(AbstractManagedObjectDefinition<?, ?> pd, String name, AbstractManagedObjectDefinition<C, S> cd) Creates a new builder which can be used to incrementally build an singleton relation definition. -
Method Summary
Modifier and TypeMethodDescriptionprotected SingletonRelationDefinition<C,
S> buildInstance
(RelationDefinition.Common<C, S> common) Build a relation definition based on the properties of this builder.void
setDefaultManagedObject
(DefaultManagedObject<? extends C, ? extends S> defaultManagedObject) Sets the optional default managed object associated with this singleton relation definition.Methods inherited from class org.forgerock.opendj.config.RelationDefinition.AbstractBuilder
getInstance, setOption
-
Constructor Details
-
Builder
public Builder(AbstractManagedObjectDefinition<?, ?> pd, String name, AbstractManagedObjectDefinition<C, S> cd) Creates a new builder which can be used to incrementally build an singleton relation definition.- Parameters:
pd
- The parent managed object definition.name
- The name of the relation.cd
- The child managed object definition.
-
-
Method Details
-
setDefaultManagedObject
public void setDefaultManagedObject(DefaultManagedObject<? extends C, ? extends S> defaultManagedObject) Sets the optional default managed object associated with this singleton relation definition.- Parameters:
defaultManagedObject
- The default managed object ornull
if there is no default managed object defined for this relation definition.
-
buildInstance
Description copied from class:RelationDefinition.AbstractBuilder
Build a relation definition based on the properties of this builder.- Specified by:
buildInstance
in classRelationDefinition.AbstractBuilder<C extends ConfigurationClient,
S extends Configuration, SingletonRelationDefinition<C extends ConfigurationClient, S extends Configuration>> - Parameters:
common
- The common fields of the new relation definition.- Returns:
- The new relation definition.
-