org.jboss.msc.translate
Class ConstructionTranslator<I,O>
java.lang.Object
org.jboss.msc.translate.ConstructionTranslator<I,O>
- Type Parameters:
I - the input typeO - the output type
- All Implemented Interfaces:
- Translator<I,O>
public final class ConstructionTranslator<I,O>
- extends Object
- implements Translator<I,O>
A translator which translates by constructing a new value and returning it. The input value may be passed in to
the constructor using Values.injectedValue().
- Author:
- David M. Lloyd
|
Method Summary |
O |
translate(I input)
Translate an input value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructionTranslator
public ConstructionTranslator(Value<Constructor<? extends O>> constructor,
List<? extends Value<?>> parameters)
- Construct a new instance.
- Parameters:
constructor - the constructor value to useparameters - the parameters, possibly including Values.injectedValue()
translate
public O translate(I input)
- Translate an input value.
- Specified by:
translate in interface Translator<I,O>
- Parameters:
input - the input value
- Returns:
- the output value
Copyright © 2010 JBoss, a division of Red Hat, Inc.