/** * <p>Returns the <code>Constructor</code> appropriate to the specified * Class and parameters.</p> * @param clazz the Class of interest * @param params the parameters for the constructor of the provided Class * @return a Constructor that can be invoked with the specified parameters */ public static Constructor lookupConstructor( Class<?> clazz, Class<?>... params) { ClassLoader loader = Util.getCurrentLoader(clazz); if (loader == null) { return null; } return getMetaData(loader, clazz).lookupConstructor(params); }
/** * <p>Returns the <code>Constructor</code> appropriate to the specified * Class and parameters.</p> * @param clazz the Class of interest * @param params the parameters for the constructor of the provided Class * @return a Constructor that can be invoked with the specified parameters */ public static Constructor lookupConstructor( Class<?> clazz, Class<?>... params) { ClassLoader loader = Util.getCurrentLoader(clazz); if (loader == null) { return null; } return getMetaData(loader, clazz).lookupConstructor(params); }
/** * <p>Returns the <code>Constructor</code> appropriate to the specified * Class and parameters.</p> * @param clazz the Class of interest * @param params the parameters for the constructor of the provided Class * @return a Constructor that can be invoked with the specified parameters */ public static Constructor<?> lookupConstructor(Class<?> clazz, Class<?>... params) { ClassLoader loader = Util.getCurrentLoader(clazz); if (loader == null) { return null; } return getMetaData(loader, clazz).lookupConstructor(params); }
/** * <p>Returns the <code>Constructor</code> appropriate to the specified * Class and parameters.</p> * @param clazz the Class of interest * @param params the parameters for the constructor of the provided Class * @return a Constructor that can be invoked with the specified parameters */ public static Constructor<?> lookupConstructor(Class<?> clazz, Class<?>... params) { ClassLoader loader = Util.getCurrentLoader(clazz); if (loader == null) { return null; } return getMetaData(loader, clazz).lookupConstructor(params); }
/** * <p>Returns the <code>Constructor</code> appropriate to the specified * Class and parameters.</p> * @param clazz the Class of interest * @param params the parameters for the constructor of the provided Class * @return a Constructor that can be invoked with the specified parameters */ public static Constructor<?> lookupConstructor(Class<?> clazz, Class<?>... params) { ClassLoader loader = Util.getCurrentLoader(clazz); if (loader == null) { return null; } return getMetaData(loader, clazz).lookupConstructor(params); }