Interface Context.Builder<BT extends Context.Builder<BT>>

Type Parameters:
BT - the type of the builder
All Known Implementing Classes:
BasicContext.Builder
Enclosing interface:
Context

public static interface Context.Builder<BT extends Context.Builder<BT>>

A builder for contexts.

  • Method Details

    • build

      Context build()
      Returns a Context with the given properties.
      Returns:
      the context
    • property

      @Deprecated default BT property(String key, Object value)
      Deprecated.
      Sets the value for the given key.
      Parameters:
      key - the key
      value - the value
      Returns:
      this builder
    • add

      BT add(String key, Object value)
    • add

      BT add(Property... property)
    • add

      BT add(Context... context)
    • subject

      BT subject(Object subject)
      Sets the subject of this context.
      Parameters:
      subject - the subject
      Returns:
      this builder