public interface ResourceInjectionServices extends Service
ResourceInjectionServices
is per-module service.Modifier and Type | Method and Description |
---|---|
Object |
resolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Resolve the value for the given @Resource injection point
|
Object |
resolveResource(String jndiName,
String mappedName)
Resolve the value for the given JNDI name and mapped name
|
Object resolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
injectionPoint
- the injection point metadataIllegalArgumentException
- if the injection point is not annotated with @Resource, or, if
the injection point is a method that doesn't follow JavaBean
conventionsIllegalStateException
- if no resource can be resolved for injectionObject resolveResource(String jndiName, String mappedName)
injectionPoint
- the injection point metadataIllegalStateException
- if no resource can be resolved for injectionIllegalArgumentException
- if both jndiName and mappedName are nullCopyright © 2012 Seam Framework. All Rights Reserved.