Skip to content

Commit

Permalink
WELD-635
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Aug 25, 2010
1 parent af90f1d commit d7b1604
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Expand Up @@ -16,6 +16,7 @@
*/
package org.jboss.weld.injection.spi;

import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.InjectionTarget;
import javax.inject.Inject;

Expand Down Expand Up @@ -51,5 +52,11 @@ public interface InjectionContext<T>
*
*/
public InjectionTarget<T> getInjectionTarget();

/**
* Get the {@link AnnotatedType} for the instance being injected
*
*/
public AnnotatedType<T> getAnnotatedType();

}
Expand Up @@ -24,14 +24,20 @@
*
* This service may be used to provide EE-style injection.
*
* The container <b>must</b> respect any modifications made to type via the
* container lifecycle events. Container lifecycle events may alter the
* annotations placed on the type, it's members, and the formal parameters of
* it's members. {@link InjectionContext#getAnnotatedType()} gives access to the
* modified state of the type.
*
* {@link InjectionServices} is a per-BeanDeploymentArchive service.
*
* @author pmuir
*
* @author Pete Muir
*
*/
public interface InjectionServices extends Service
{

/**
* Callback for injection.
*
Expand Down

0 comments on commit d7b1604

Please sign in to comment.