Module org.refcodes.servicebus
Package org.refcodes.servicebus
Interface ServiceContextAccessor.ServiceContextProperty<SCTX>
- Type Parameters:
SCTX
- the generic type
- All Superinterfaces:
ServiceContextAccessor<SCTX>
,ServiceContextAccessor.ServiceContextMutator<SCTX>
- Enclosing interface:
- ServiceContextAccessor<SCTX>
public static interface ServiceContextAccessor.ServiceContextProperty<SCTX>
extends ServiceContextAccessor<SCTX>, ServiceContextAccessor.ServiceContextMutator<SCTX>
Provides a
Service
's context property.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.servicebus.ServiceContextAccessor
ServiceContextAccessor.ServiceContextMutator<SCTX>, ServiceContextAccessor.ServiceContextProperty<SCTX>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SCTX
letServiceContext
(SCTX aServiceContext) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofServiceContextAccessor.ServiceContextMutator.setServiceContext(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.servicebus.ServiceContextAccessor
getServiceContext
Methods inherited from interface org.refcodes.servicebus.ServiceContextAccessor.ServiceContextMutator
setServiceContext
-
Method Details
-
letServiceContext
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofServiceContextAccessor.ServiceContextMutator.setServiceContext(Object)
and returns the very same value (getter).- Parameters:
aServiceContext
- The value to set (viaServiceContextAccessor.ServiceContextMutator.setServiceContext(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-