Module org.refcodes.component
Package org.refcodes.component
Interface ContextAccessor.ContextProperty<CTX>
-
- Type Parameters:
CTX
- The type of the context property.
- 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 for e.g. a service or a component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ContextAccessor
ContextAccessor.ContextBuilder<CTX,B extends ContextAccessor.ContextBuilder<CTX,B>>, ContextAccessor.ContextMutator<CTX>, ContextAccessor.ContextProperty<CTX>
-
-
Method Summary
All Methods Instance Methods Default Methods 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 context (setter) as ofContextAccessor.ContextMutator.setContext(Object)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.component.ContextAccessor
getContext
-
Methods inherited from interface org.refcodes.component.ContextAccessor.ContextMutator
setContext
-
-
-
-
Method Detail
-
letContext
default CTX letContext(CTX aContext)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given context (setter) as ofContextAccessor.ContextMutator.setContext(Object)
and returns the very same value (getter).- Parameters:
aContext
- The context to set (viaContextAccessor.ContextMutator.setContext(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-