public interface EjbInjectionServices extends Service
EjbInjectionServices
is a per-module service.Modifier and Type | Method and Description |
---|---|
ResourceReferenceFactory<Object> |
registerEjbInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Register an EJB injection point.
|
Object |
resolveEjb(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Deprecated.
Instead of calling this method at runtime, Weld should register every EJB injection point at bootstrap using
registerEjbInjectionPoint(InjectionPoint) and use the returned factory for producing injectable
instances at runtime. |
ResourceReferenceFactory<Object> registerEjbInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceReferenceFactory
is returned which may be used at runtime for creating instances of the resource.injectionPoint
- the injection point metadatajavax.enterprise.inject.spi.DefinitionException
- if the injection point is not annotated with @EJB, if the injection point is a method that
doesn't follow JavaBean conventions or if the injection point type does not match the EJB typeIllegalStateException
- if no suitable EJB can be resolved@Deprecated Object resolveEjb(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
registerEjbInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable
instances at runtime.injectionPoint
- the injection point metadataIllegalArgumentException
- if the injection point is not annotated with @EJB, or, if the injection point is a
method that doesn't follow JavaBean conventionsCopyright © 2008-2015. All Rights Reserved.