Class ContextInjectionSource


  • public class ContextInjectionSource
    extends InjectionSource
    Injection source that can be used to bind a potentially empty context
    Author:
    Stuart Douglas
    • Constructor Detail

      • ContextInjectionSource

        public ContextInjectionSource​(String name,
                                      String fullName)
    • Method Detail

      • getResourceValue

        public void getResourceValue​(InjectionSource.ResolutionContext resolutionContext,
                                     org.jboss.msc.service.ServiceBuilder<?> serviceBuilder,
                                     org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext,
                                     org.jboss.msc.inject.Injector<ManagedReferenceFactory> injector)
                              throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Description copied from class: InjectionSource
        Get the value to use as the injection source. The value will be yield an injectable which is dereferenced once for every time the reference source is injected. The given binder service builder may be used to apply any dependencies for this binding (i.e. the source for the binding's value).
        Specified by:
        getResourceValue in class InjectionSource
        Parameters:
        resolutionContext - the resolution context to use
        serviceBuilder - the builder for the binder service
        phaseContext - the deployment phase context
        injector - the injector into which the value should be placed
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException - if an error occurs