Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2010, Red Hat, Inc., and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.jboss.weld.manager.api;
 
 
 
Functionality provided by the Weld Manager over and above the JSR-299 Manager.

Author(s):
Pete Muir
 
 public interface WeldManager extends BeanManagerSerializable {

    
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
 
     WeldManager createActivity();

    
Associate an activity with the current context for a normal scope

Parameters:
scopeType the scope to associate the activity with
Returns:
the activity
Throws:
javax.enterprise.context.ContextNotActiveException if the given scope is inactive
java.lang.IllegalArgumentException if the given scope is not a normal scope
 
     WeldManager setCurrent(Class<? extends AnnotationscopeType);

    
The injection target for the given EJB, or null if Weld was not given this descriptor in the deployment. This should only be used to create an inject contextual EJBs by the EJB container. fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType) and fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType,javax.enterprise.inject.spi.InjectionTarget) must be used to obtain an javax.enterprise.inject.spi.InjectionTarget for non-contextual EJB injection.

Parameters:
<T> the type of the EJB
descriptor the given EJB descriptor
Returns:
the injection target for the given EJB
 
     <T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor);

    
Get the Bean object for the given EJB, or null if Weld was not given this descriptor in the deployment.

Parameters:
<T> the type of the bean
descriptor the given EJB descriptor
Returns:
the Bean object for the given EJB
 
     <T> Bean<T> getBean(EjbDescriptor<T> descriptor);

    
Get the EjbDescriptor for the given EJB name

Parameters:
<T> the type of the EJB
ejbName the given EJB name
Returns:
the EjbDescriptor for the given EJB name
 
     <T> EjbDescriptor<T> getEjbDescriptor(String ejbName);

    
Get the services registered for this manager

Returns:
the services registered for this manager
    ServiceRegistry getServices();

    

Returns:
the WeldManager that corresponds to the current activity
    WeldManager getCurrent();

    
Fire a ProcessInjectionTarget event for the given type. A helper method to allow integration code to easily fire the ProcessInjectionTarget for Java EE component classes supporting injection The container must use the returned InjectionTarget to inject the Java EE component.

Parameters:
<X> the type
type the type
Returns:
final version of InjectionTarget after all observers have been invoked
    <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> type);

    
Fire a ProcessInjectionTarget event for the given type. A helper method to allow integration code to easily fire the ProcessInjectionTarget for Java EE component classes supporting injection The container must use the returned InjectionTarget to inject the Java EE component.

Parameters:
<X> the type
annotatedType the type
injectionTarget the injection target
Returns:
final version of InjectionTarget after all observers have been invoked
    <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> annotatedTypeInjectionTarget<X> injectionTarget);

    
The ID of the manager, identical to the ID provided by the BDA

Returns:
the ID of the manager
    String getId();
    @Override
    @Override
    Bean<?> getPassivationCapableBean(BeanIdentifier identifier);

    
Returns a new instance of WeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type.

Parameters:
<T> the type
type the specified type
Returns:
a new WeldInjectionTargetBuilder instance for the specified type

Returns:
an unwrapped instance (e.g. the delegate in the case of forwarding implementation)
New to GrepCode? Check out our FAQ X