- Type Parameters:
CTX
- The context's type to be accessed.
- All Superinterfaces:
ContextAccessor<CTX>
,ContextAccessor.ContextMutator<CTX>
- Enclosing interface:
- ContextAccessor<CTX>
public static interface ContextAccessor.ContextProperty<CTX> extends ContextAccessor<CTX>, ContextAccessor.ContextMutator<CTX>
Provides a context property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ContextAccessor
ContextAccessor.ContextMutator<CTX>, ContextAccessor.ContextProperty<CTX>
-
Method Summary
Modifier and Type Method Description default CTX
letContext(CTX aContext)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofContextAccessor.ContextMutator.setContext(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.ContextAccessor
getContext
Methods inherited from interface org.refcodes.mixin.ContextAccessor.ContextMutator
setContext
-
Method Details
-
letContext
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofContextAccessor.ContextMutator.setContext(Object)
and returns the very same value (getter).- Parameters:
aContext
- The value to set (viaContextAccessor.ContextMutator.setContext(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-