Package org.zkoss.zel.impl.util
Interface ClassReflect
public interface ClassReflect
The implementation of
ClassUtil.- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptiongetCloseMethod(Class<?> cls, String name, Class<?>[] argTypes) Gets one of the close methods -- a close method is a method with the same name and the compatible argument type.getContextClassLoader(Class<?> reference) Returns the context ClassLoader for the reference class.newInstance(Class<?> cls, Object[] args) Instantiates a new instance of the specified class with the specified argument.
-
Method Details
-
getCloseMethod
Gets one of the close methods -- a close method is a method with the same name and the compatible argument type.- Throws:
NoSuchMethodException
-
newInstance
Object newInstance(Class<?> cls, Object[] args) throws NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException Instantiates a new instance of the specified class with the specified argument. -
getContextClassLoader
Returns the context ClassLoader for the reference class.- Parameters:
reference- the reference class where it is invoked from.- Since:
- 8.0.2
-