JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.service
Class ValueInjection<T>

java.lang.Object
  extended by org.jboss.msc.service.ValueInjection<T>
Type Parameters:
T - the value type

public final class ValueInjection<T>
extends Object

An injection of a source value into a target injector.

Author:
David M. Lloyd

Constructor Summary
ValueInjection(Value<? extends T> source, Injector<? super T> target)
          Construct a new instance.
 
Method Summary
 Value<? extends T> getSource()
          Get the source value.
 Injector<? super T> getTarget()
          Get the target injector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueInjection

public ValueInjection(Value<? extends T> source,
                      Injector<? super T> target)
Construct a new instance.

Parameters:
source - the source value
target - the target injector
Method Detail

getSource

public Value<? extends T> getSource()
Get the source value.

Returns:
the source value

getTarget

public Injector<? super T> getTarget()
Get the target injector.

Returns:
the target injector

JBoss Modular Service Kernel API 1.0.0.CR2

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