Package org.eclipse.handly.context
Class Context.BindingBuilder<T>
java.lang.Object
org.eclipse.handly.context.Context.BindingBuilder<T>
- Type Parameters:
T
- the type of value
- Enclosing class:
- Context
Associates a value with a key in this context.
-
Method Summary
-
Method Details
-
to
Associates the given value with a key in this context.- Parameters:
value
- may benull
- Returns:
- this context
-
toSupplier
Associates the given supplier with a key in this context. When a value is requested for the key, the context will invoke the supplier to obtain the value.- Parameters:
supplier
- notnull
- Returns:
- this context
-