Package org.jboss.as.ee.component
Class InjectionSource
- java.lang.Object
-
- org.jboss.as.ee.component.InjectionSource
-
- Direct Known Subclasses:
ComponentTypeInjectionSource
,ContextInjectionSource
,EnvEntryInjectionSource
,FixedInjectionSource
,LookupInjectionSource
,MessageDestinationInjectionSource
,ResourceDefinitionInjectionSource
,ViewBindingInjectionSource
public abstract class InjectionSource extends Object
A configuration for an injection source.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InjectionSource.ResolutionContext
A resolution context for the injection source.
-
Constructor Summary
Constructors Constructor Description InjectionSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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)
Get the value to use as the injection source.
-
-
-
Method Detail
-
getResourceValue
public abstract 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
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).- Parameters:
resolutionContext
- the resolution context to useserviceBuilder
- the builder for the binder servicephaseContext
- the deployment phase contextinjector
- the injector into which the value should be placed- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
- if an error occurs
-
-