public class ExtendedStandaloneResourceInjectionService extends StandaloneResourceInjectionService
Constructor and Description |
---|
ExtendedStandaloneResourceInjectionService(WebBeansContext webBeansContext) |
Modifier and Type | Method and Description |
---|---|
<X,T extends Annotation> |
getResourceReference(ResourceReference<X,T> resourceReference)
Gets resource for the given resource reference.
|
clear, getWebBeansContext, injectJavaEEResources, readExternal, writeExternal
public ExtendedStandaloneResourceInjectionService(WebBeansContext webBeansContext)
public <X,T extends Annotation> X getResourceReference(ResourceReference<X,T> resourceReference)
ResourceInjectionService
This method is used for getting individual resource references that are defined by the ManagedBean producer fields. For example;
@Produces
@MyPersistenceContext PersistenceContext EntityManager manager;
See section 3.5 of the JSR-299 specification.
getResourceReference
in interface ResourceInjectionService
getResourceReference
in class StandaloneResourceInjectionService
T
- resource type, @EJB, @Resource, @WebServiceRef,
@PersistenceContext or @PersistenceUnitCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.