mPojoClass = ClassUtil.loadClass(mPojoClassName); boolean methodFound = false; for (Method method : mPojoClass.getMethods()) {
operationProxyClassName = DEFAULT_OPERATION_PROXY_CLASS_NAME; Class < ? > clazz = ClassUtil.loadClass(operationProxyClassName); Constructor < ? > constructor = clazz.getConstructor(Map.class); return (IOperationProxy) constructor
Class < ? > proxyInvokerClass = ClassUtil.loadClass(className); Constructor < ? > constructor = proxyInvokerClass .getConstructor(Map.class);
/** * Load host transformers identified by class name. * * @param className the transformers class name * @return an instance of the host transformers * @throws ProxyConfigurationException if unable to instantiate the host * transformers */ private IHostTransformers getHostTransformers( final String className) throws ProxyConfigurationException { try { Class < ? > clazz = ClassUtil.loadClass(className); Constructor < ? > constructor = clazz.getConstructor(); return (IHostTransformers) constructor.newInstance(new Object[] {}); } catch (SecurityException e) { throw new ProxyConfigurationException(e); } catch (IllegalArgumentException e) { throw new ProxyConfigurationException(e); } catch (ClassNotFoundException e) { throw new ProxyConfigurationException(e); } catch (NoSuchMethodException e) { throw new ProxyConfigurationException(e); } catch (InstantiationException e) { throw new ProxyConfigurationException(e); } catch (IllegalAccessException e) { throw new ProxyConfigurationException(e); } catch (InvocationTargetException e) { throw new ProxyConfigurationException(e.getTargetException()); } }