Package org.jboss.weld.injection.spi
Interface EjbInjectionServices
-
- All Superinterfaces:
Service
public interface EjbInjectionServices extends Service
A container should implement this interface to allow Weld to resolve EJB.EjbInjectionServices
is a per-module service.- Author:
- Pete Muir, Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceReferenceFactory<Object>
registerEjbInjectionPoint(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint)
Register an EJB injection point.
-
-
-
Method Detail
-
registerEjbInjectionPoint
ResourceReferenceFactory<Object> registerEjbInjectionPoint(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint)
Register an EJB injection point. The implementation validates the injection point. If the validation passes, an instance ofResourceReferenceFactory
is returned which may be used at runtime for creating instances of the resource.- Parameters:
injectionPoint
- the injection point metadata- Returns:
- EJB instance factory
- Throws:
jakarta.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
-
-