org.jboss.weld.injection.spi

Interface EjbInjectionServices

  • All Superinterfaces:
    Service


    public interface EjbInjectionServicesextends 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 Detail

      • registerEjbInjectionPoint

        ResourceReferenceFactory<Object> registerEjbInjectionPoint(InjectionPoint injectionPoint)
        Register an EJB injection point. The implementation validates the injection point. If the validation passes, an instance of ResourceReferenceFactory 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:
        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 type
        IllegalStateException - if no suitable EJB can be resolved
      • resolveEjb

        @DeprecatedObject resolveEjb(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.
        Resolve the value for the given @EJB injection point.
        Parameters:
        injectionPoint - the injection point metadata
        Returns:
        an instance of the EJB
        Throws:
        IllegalArgumentException - if the injection point is not annotated with @EJB, or, if the injection point is a method that doesn't follow JavaBean conventions

Copyright © 2015. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14