Package org.refcodes.component
Interface ContextAccessor<CTX>
-
- Type Parameters:
CTX
- The type of the context to be used.
- All Known Subinterfaces:
ContextAccessor.ContextProperty<CTX>
- All Known Implementing Classes:
ConfigureException
public interface ContextAccessor<CTX>
Provides an accessor for a context property for e.g. a service or a component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ContextAccessor.ContextBuilder<CTX,B extends ContextAccessor.ContextBuilder<CTX,B>>
Provides a builder method for a context property returning the builder for applying multiple build operations.static interface
ContextAccessor.ContextMutator<CTX>
Provides a mutator for a context property for e.g. a service or a component.static interface
ContextAccessor.ContextProperty<CTX>
Provides a context property for e.g. a service or a component.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CTX
getContext()
Retrieves the context from the context property.
-
-
-
Method Detail
-
getContext
CTX getContext()
Retrieves the context from the context property.- Returns:
- The context stored by the context property.
-
-