Class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,D extends RelationDefinition<C,S>>

java.lang.Object
org.forgerock.opendj.config.RelationDefinition.AbstractBuilder<C,S,D>
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.
D - The type of relation definition constructed by this builder.
Direct Known Subclasses:
InstantiableRelationDefinition.Builder, OptionalRelationDefinition.Builder, SetRelationDefinition.Builder, SingletonRelationDefinition.Builder
Enclosing class:
RelationDefinition<C extends ConfigurationClient,S extends Configuration>

protected abstract static class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,D extends RelationDefinition<C,S>> extends Object
An interface for incrementally constructing relation definitions.
  • Constructor Details

  • Method Details

    • getInstance

      public final D getInstance()
      Construct a relation definition based on the properties of this builder.
      Returns:
      The new relation definition.
    • setOption

      public final void setOption(RelationOption option)
      Add a relation definition option.
      Parameters:
      option - The relation option.
    • buildInstance

      protected abstract D buildInstance(RelationDefinition.Common<C,S> common)
      Build a relation definition based on the properties of this builder.
      Parameters:
      common - The common fields of the new relation definition.
      Returns:
      The new relation definition.