Interface ContextManager

    • Method Detail

      • getContext

        <K> AdvancedContext<K> getContext​(Class<? extends Annotation> scope)
        Gives the context corresponding to the given scope
        Parameters:
        scope - the annotation class corresponding to the scope
        Returns:
        the Context corresponding to the given scope
      • hasContext

        boolean hasContext​(Class<? extends Annotation> scope)
        Indicates whether or not a context has a been registered for the given scope
        Parameters:
        scope - the scope of the context
        Returns:
        true if it exists a context for the given scope, false otherwise
      • addContext

        <K> void addContext​(AdvancedContext<K> ctx)
        Registers a context
        Parameters:
        ctx - the Context to register