/** * Gets a Transformer that expects an input Class object that it will instantiate. * * @param <T> the output type * @return the transformer * @see InstantiateTransformer */ public static <T> Transformer<Class<? extends T>, T> instantiateTransformer() { return InstantiateTransformer.instantiateTransformer(); }
/** * Creates a Transformer that expects an input Class object that it will * instantiate. The constructor used is determined by the arguments specified * to this method. * * @param <T> the output type * @param paramTypes parameter types for the constructor, can be null * @param args the arguments to pass to the constructor, can be null * @return the transformer * @throws IllegalArgumentException if the paramTypes and args don't match * @see InstantiateTransformer */ public static <T> Transformer<Class<? extends T>, T> instantiateTransformer( final Class<?>[] paramTypes, final Object[] args) { return InstantiateTransformer.instantiateTransformer(paramTypes, args); }