Package org.refcodes.mixin
Interface ContextAccessor<CTX>
-
- Type Parameters:
CTX- The context's type to be accessed.
- All Known Subinterfaces:
ContextAccessor.ContextProperty<CTX>
public interface ContextAccessor<CTX>Provides an accessor for a context property.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceContextAccessor.ContextMutator<CTX>Provides a mutator for a context property.static interfaceContextAccessor.ContextProperty<CTX>Provides a context property.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CTXgetContext()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.
-
-