Package org.tensorics.core.util
Class SingleArgumentConstructorInstantiator<A,R>
- java.lang.Object
-
- org.tensorics.core.util.SingleArgumentInvokableInstantiator<A,R>
-
- org.tensorics.core.util.SingleArgumentConstructorInstantiator<A,R>
-
- Type Parameters:
A
- the type of the argument of the constructorR
- the type of the return type (type of the class to instantiate)
- All Implemented Interfaces:
Instantiator<A,R>
public class SingleArgumentConstructorInstantiator<A,R> extends SingleArgumentInvokableInstantiator<A,R>
This instantiator expects a public constructor with a single argument of a certain type to instantiate a certain class.
-
-
Field Summary
-
Fields inherited from class org.tensorics.core.util.SingleArgumentInvokableInstantiator
instanceClass
-
-
Constructor Summary
Constructors Constructor Description SingleArgumentConstructorInstantiator(java.lang.Class<R> instanceClass, java.lang.Class<A> constructorArgumentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.reflect.Invokable<R,R>
invokableFor(java.lang.Class<A> constructorArgumentClass)
-
Methods inherited from class org.tensorics.core.util.SingleArgumentInvokableInstantiator
create
-
-
-
-
Method Detail
-
invokableFor
protected com.google.common.reflect.Invokable<R,R> invokableFor(java.lang.Class<A> constructorArgumentClass)
- Specified by:
invokableFor
in classSingleArgumentInvokableInstantiator<A,R>
-
-