Class SingleArgumentConstructorInstantiator<A,​R>

  • Type Parameters:
    A - the type of the argument of the constructor
    R - 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.
    • Constructor Detail

      • SingleArgumentConstructorInstantiator

        public SingleArgumentConstructorInstantiator​(java.lang.Class<R> instanceClass,
                                                     java.lang.Class<A> constructorArgumentClass)