org.jboss.webbeans.manager.api
Interface WebBeansManager

All Superinterfaces:
BeanManager, java.io.Serializable

public interface WebBeansManager
extends BeanManager, java.io.Serializable

Functionality provided by the Web Beans Manager over and above the JSR-299 Manager.

Author:
Pete Muir

Method Summary
 WebBeansManager createActivity()
          Create a new child activity.
 WebBeansManager setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
          Associate an activity with the current context for a normal scope
 void shutdown()
           
 
Methods inherited from interface javax.enterprise.inject.spi.BeanManager
addBean, addContext, addObserver, createAnnotatedType, createCreationalContext, createInjectionTarget, fireEvent, getBeans, getBeans, getContext, getELResolver, getEnabledDeploymentTypes, getInjectableReference, getInterceptorBindingTypeDefinition, getMostSpecializedBean, getPassivationCapableBean, getReference, getScopeDefinition, getStereotypeDefinition, isBindingType, isInterceptorBindingType, isScopeType, isStereotype, removeObserver, resolve, resolveDecorators, resolveInterceptors, resolveObserverMethods, resolveObservers, validate
 

Method Detail

shutdown

void shutdown()

createActivity

WebBeansManager createActivity()
Create a new child activity. A child activity inherits all beans, interceptors, decorators, observers, and contexts defined by its direct and indirect parent activities. This method should not be called by the application.

Returns:
the child activity

setCurrent

WebBeansManager setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Associate an activity with the current context for a normal scope

Parameters:
scopeType - the scope to associate the activity with
Returns:
the activity
Throws:
ContextNotActiveException - if the given scope is inactive
java.lang.IllegalArgumentException - if the given scope is not a normal scope


Copyright © 2008-2009. All Rights Reserved.