eXo Kernel :: Container 2.5.0-Alpha2

org.exoplatform.container.context
Interface AdvancedContext<K>

All Superinterfaces:
javax.enterprise.context.spi.AlterableContext, javax.enterprise.context.spi.Context
All Known Implementing Classes:
AbstractContext, RequestContext, SessionContext, SharedContext, UnSharedContext

public interface AdvancedContext<K>
extends javax.enterprise.context.spi.AlterableContext

This interface defines all the additional methods needed to easily implement an AlterableContext

Version:
$Id$
Author:
Nicolas Filotto

Method Summary
 void activate(K key)
          Activates the current context using the given key within the context of the thread
 void deactivate(K key)
          Deactivates the current context using the given key from the context of the thread
 void register(K key)
          Registers a new key to the context
 void unregister(K key)
          Unregisters a given key from the context
 
Methods inherited from interface javax.enterprise.context.spi.AlterableContext
destroy
 
Methods inherited from interface javax.enterprise.context.spi.Context
get, get, getScope, isActive
 

Method Detail

register

void register(K key)
Registers a new key to the context

Parameters:
key - the key to register

unregister

void unregister(K key)
Unregisters a given key from the context

Parameters:
key - the key to unregister

activate

void activate(K key)
Activates the current context using the given key within the context of the thread

Parameters:
key - the key to use to activate the context

deactivate

void deactivate(K key)
Deactivates the current context using the given key from the context of the thread

Parameters:
key - the key to use to deactivate the context

eXo Kernel :: Container 2.5.0-Alpha2

Copyright © 2013 eXo Platform SAS. All Rights Reserved.