org.jboss.jsr299.tck.spi
Interface Contexts<T extends javax.enterprise.context.spi.Context>

Type Parameters:
T - The concrete context type of the implementation

public interface Contexts<T extends javax.enterprise.context.spi.Context>

This interface provides operations relating to Contexts. The TCK porting package must provide an implementation of this interface which is suitable for the target implementation.

Author:
Shane Bryzak, Pete Muir

Field Summary
static String PROPERTY_NAME
           
 
Method Summary
 void destroyContext(T context)
          Destroy the context.
 T getDependentContext()
          Returns the dependent context, regardless of whether it is active or not
 T getRequestContext()
          Get the request context, regardless of whether it is active or not
 void setActive(T context)
          Sets the specified context as active
 void setInactive(T context)
          Sets the specified context as inactive
 

Field Detail

PROPERTY_NAME

static final String PROPERTY_NAME
Method Detail

setActive

void setActive(T context)
Sets the specified context as active

Parameters:
context - The context to set active

setInactive

void setInactive(T context)
Sets the specified context as inactive

Parameters:
context - The context to set inactive

getRequestContext

T getRequestContext()
Get the request context, regardless of whether it is active or not

Returns:
The request context

getDependentContext

T getDependentContext()
Returns the dependent context, regardless of whether it is active or not

Returns:
the dependent context

destroyContext

void destroyContext(T context)
Destroy the context. This operation is defined by the Web Beans specification but has no API.

Parameters:
context - the context to destroy


Copyright © 2008-2012 Seam Framework. All Rights Reserved.