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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext.Builder.Factory<BT extends Context.Builder<BT>>A factory for builders. -
Method Summary
-
Method Details
-
build
Context build()Returns aContextwith the given properties.- Returns:
- the context
-
property
Deprecated.useadd(String, Object)insteadSets the value for the given key.- Parameters:
key- the keyvalue- the value- Returns:
- this builder
-
add
-
add
-
add
-
subject
Sets the subject of this context.- Parameters:
subject- the subject- Returns:
- this builder
-
add(String, Object)instead