JBoss Modular Service Kernel API 1.0.0.Beta1

org.jboss.msc.service
Class FieldDelegatingInjectionSource

java.lang.Object
  extended by org.jboss.msc.service.DelegatingInjectionSource
      extended by org.jboss.msc.service.FieldDelegatingInjectionSource

public class FieldDelegatingInjectionSource
extends DelegatingInjectionSource

InjectionSource that gets the value of a field from the value of a delegate InjectionSource.

Author:
John E. Bailey

Constructor Summary
FieldDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, String fieldName)
           
FieldDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, Value<Field> fieldValue)
           
 
Method Summary
protected
<T> Value<?>
getValue(Value<?> delegateValue, Value<T> serviceValue, org.jboss.msc.service.ServiceBuilder<T> serviceBuilder, org.jboss.msc.service.ServiceContainerImpl container)
          Contract method providing children with the value of the delegate InjectionSource.
 
Methods inherited from class org.jboss.msc.service.DelegatingInjectionSource
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDelegatingInjectionSource

public FieldDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                      Value<Field> fieldValue)

FieldDelegatingInjectionSource

public FieldDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                      String fieldName)
Method Detail

getValue

protected <T> Value<?> getValue(Value<?> delegateValue,
                                Value<T> serviceValue,
                                org.jboss.msc.service.ServiceBuilder<T> serviceBuilder,
                                org.jboss.msc.service.ServiceContainerImpl container)
Description copied from class: DelegatingInjectionSource
Contract method providing children with the value of the delegate InjectionSource.

Specified by:
getValue in class DelegatingInjectionSource
Parameters:
delegateValue - The value from the delegate injection source
serviceValue - The service value
serviceBuilder - The service builder
container - The service container
Returns:
The value of the injection source

JBoss Modular Service Kernel API 1.0.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.