JBoss Modular Service Kernel API 1.0.0.Beta1

org.jboss.msc.service
Class PropertyDelegatingInjectionSource

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

public class PropertyDelegatingInjectionSource
extends DelegatingInjectionSource

InjectionSource that delegates to another InjectionSource and uses a property of the value as the actual injection value.

Author:
John E. Bailey

Constructor Summary
PropertyDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, String propertyName)
           
PropertyDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, Value<Property> propertyValue)
           
 
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

PropertyDelegatingInjectionSource

public PropertyDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                         String propertyName)

PropertyDelegatingInjectionSource

public PropertyDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                         Value<Property> propertyValue)
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.