eXo Kernel :: Container 2.5.0-GA

org.exoplatform.container.context
Interface ContextManager

All Known Implementing Classes:
ContextManagerImpl

public interface ContextManager

The entry point to a Context

Version:
$Id$
Author:
Nicolas Filotto

Method Summary
<K> void
addContext(AdvancedContext<K> ctx)
          Registers a context
<K> AdvancedContext<K>
getContext(Class<? extends Annotation> scope)
          Gives the context corresponding to the given scope
 boolean hasContext(Class<? extends Annotation> scope)
          Indicates whether or not a context has a been registered for the given scope
 

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

eXo Kernel :: Container 2.5.0-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.