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: 1363106 $ $Date: 2012-07-18 22:51:15 +0200 (Mi, 18 Jul 2012) $

Method Summary
 void destroy()
          Destroys the context.
<T> javax.enterprise.context.spi.CreationalContext<T>
getCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
          Gets creational context of the given bean.
<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.


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.