Class ProvisionConfig<S>

java.lang.Object
ch.raffael.meldioc.model.config.ElementConfig<S>
ch.raffael.meldioc.model.config.ProvisionConfig<S>

public abstract class ProvisionConfig<S> extends ElementConfig<S>
  • Field Details

  • Method Details

    • builder

      public static <S> ProvisionConfig.Builder<S> builder()
    • of

      public static ProvisionConfig<ch.raffael.meldioc.Provision> of(ch.raffael.meldioc.Provision annotation)
    • singleton

      public abstract boolean singleton()
    • override

      public abstract boolean override()
    • type

      public final ModelAnnotationType type()
      Specified by:
      type in class ElementConfig<S>
    • valueMap

      public io.vavr.collection.Map<String,Object> valueMap()
      Specified by:
      valueMap in class ElementConfig<S>
    • displayName

      public String displayName()
      Overrides:
      displayName in class ElementConfig<S>
    • withSource

      ProvisionConfig<S> withSource(S value)
      Copy the current immutable object by setting a value for the source attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for source
      Returns:
      A modified copy of the this object
    • withSingleton

      ProvisionConfig<S> withSingleton(boolean value)
      Copy the current immutable object by setting a value for the singleton attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for singleton
      Returns:
      A modified copy of the this object
    • withOverride

      ProvisionConfig<S> withOverride(boolean value)
      Copy the current immutable object by setting a value for the override attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for override
      Returns:
      A modified copy of the this object