JBoss Modular Service Kernel API 1.0.0.Beta1

org.jboss.msc.service
Class MethodDelegatingInjectionSource

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

public class MethodDelegatingInjectionSource
extends DelegatingInjectionSource

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

Author:
John E. Bailey

Constructor Summary
MethodDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, String methodName, List<? extends Value<Class<?>>> parameterTypes, List<? extends Value<?>> parameters)
           
MethodDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate, Value<Method> methodValue, List<? extends Value<?>> parameters)
           
 
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

MethodDelegatingInjectionSource

public MethodDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                       String methodName,
                                       List<? extends Value<Class<?>>> parameterTypes,
                                       List<? extends Value<?>> parameters)

MethodDelegatingInjectionSource

public MethodDelegatingInjectionSource(org.jboss.msc.service.InjectionSource delegate,
                                       Value<Method> methodValue,
                                       List<? extends Value<?>> parameters)
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.