Code example for Method

Methods: getDeclaringClass, getName, getParameterTypes

0
	} 
 
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable { 
		Method invokeMethod = method;
		if (!method.getDeclaringClass().isInstance(impl)) {
			invokeMethod = objectReflect.getMethod(method.getName(),
					method.getParameterTypes());
		} 
 
		return objectReflect.invoke(invokeMethod, args);
	} 
 
	@SuppressWarnings("unchecked") 
	public <T> T createProxy(Class<T> clazz) {
		return (T) createProxy(new Class<?>[] { clazz });
	} 
 
	public Object createProxy(Class<?>[] classes) {
		return Proxy.newProxyInstance(getClass().getClassLoader(), classes,
				this);