org.apache.webbeans.context
Interface WebBeansContext

All Superinterfaces:
javax.enterprise.context.spi.Context
All Known Implementing Classes:
AbstractContext, ApplicationContext, ConversationContext, DependentContext, RequestContext, SessionContext, SingletonContext

public interface WebBeansContext
extends javax.enterprise.context.spi.Context

Defines spi for contexts.

Version:
$Rev: 1051320 $ $Date: 2010-12-21 00:48:55 +0100 (Di, 21 Dez 2010) $

Method Summary
 void destroy()
          Destroys the context.
 Map<javax.enterprise.context.spi.Contextual<?>,BeanInstanceBag<?>> getComponentInstanceMap()
          Returns instance map.
<T> javax.enterprise.context.spi.CreationalContext<T>
getCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
          Gets creational context of the given bean.
 ContextTypes getType()
          Returns context type.
<T> void
initContextualBag(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          Initializes this contextual bag with given creational context.
 
Methods inherited from interface javax.enterprise.context.spi.Context
get, get, getScope, isActive
 

Method Detail

initContextualBag

<T> void initContextualBag(javax.enterprise.context.spi.Contextual<T> contextual,
                           javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Initializes this contextual bag with given creational context.

Given creational context is used fot creating the bean instance.

Type Parameters:
T - type
Parameters:
contextual - contextual bean
creationalContext - creational context

destroy

void destroy()
Destroys the context.


getType

ContextTypes getType()
Returns context type.

Returns:
context type

getComponentInstanceMap

Map<javax.enterprise.context.spi.Contextual<?>,BeanInstanceBag<?>> getComponentInstanceMap()
Returns instance map.

Returns:
instance map

getCreationalContext

<T> javax.enterprise.context.spi.CreationalContext<T> getCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
Gets creational context of the given bean.

Type Parameters:
T - type
Parameters:
contextual - contextual bean
Returns:
creational context of the given bean


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.