Interface ContextManager

All Known Implementing Classes:
ContextManagerImpl

public interface ContextManager
The entry point to a Context
Version:
$Id$
Author:
Nicolas Filotto
  • Method Details

    • 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