org.jboss.weld.manager.api
Interface WeldManager

All Superinterfaces:
BeanManager, java.io.Serializable

public interface WeldManager
extends BeanManager, java.io.Serializable

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

Author:
Pete Muir

Method Summary
 WeldManager createActivity()
          Create a new child activity.
<T> InjectionTarget<T>
createInjectionTarget(EjbDescriptor<T> descriptor)
          The injection target for the given EJB, or null if Weld was not given this descriptor in the deployment.
<T> Bean<T>
getBean(EjbDescriptor<T> descriptor)
          Get the Bean object for the given EJB, or null if Weld was not given this descriptor in the deployment.
<T> EjbDescriptor<T>
getEjbDescriptor(java.lang.String ejbName)
          Get the EjbDescriptor for the given ejb name
 ServiceRegistry getServices()
          Get the services registered for this manager
 WeldManager setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
          Associate an activity with the current context for a normal scope
 
Methods inherited from interface javax.enterprise.inject.spi.BeanManager
addBean, createAnnotatedType, createCreationalContext, createInjectionTarget, fireEvent, getBeans, getBeans, getContext, getELResolver, getInjectableReference, getInterceptorBindingTypeDefinition, getMostSpecializedBean, getPassivationCapableBean, getReference, getStereotypeDefinition, isInterceptorBindingType, isNormalScope, isPassivatingScope, isQualifier, isScope, isStereotype, resolve, resolveDecorators, resolveInterceptors, resolveObserverMethods, validate, wrapExpressionFactory
 

Method Detail

createActivity

WeldManager 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

WeldManager 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

createInjectionTarget

<T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
The injection target for the given EJB, or null if Weld was not given this descriptor in the deployment.

Type Parameters:
T -
Parameters:
descriptor -
Returns:

getBean

<T> Bean<T> getBean(EjbDescriptor<T> descriptor)
Get the Bean object for the given EJB, or null if Weld was not given this descriptor in the deployment.

Type Parameters:
T -
Parameters:
descriptor -
Returns:

getEjbDescriptor

<T> EjbDescriptor<T> getEjbDescriptor(java.lang.String ejbName)
Get the EjbDescriptor for the given ejb name

Type Parameters:
T -
Parameters:
ejbName -
Returns:

getServices

ServiceRegistry getServices()
Get the services registered for this manager

Returns:


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