| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | getPackageName(Class<?> clazz)
Returns the package name of |
| public static String | getPackageName(String classFullName)
Returns the package name of |
| public static void | initialize(Class<?>... classes)
Ensures that the given classes are initialized, as described in JLS Section 12.4.2. |
| public static <T> T | newProxy(Class<T> interfaceType, InvocationHandler handler)
Returns a proxy instance that implements |
| Reflection | back to summary |
|---|---|
| private Reflection() | |
| getPackageName | back to summary |
|---|---|
| public static String getPackageName(Class<?> clazz) Returns the package name of | |
| getPackageName | back to summary |
|---|---|
| public static String getPackageName(String classFullName) Returns the package name of | |
| initialize | back to summary |
|---|---|
| public static void initialize(Class<?>... classes) Ensures that the given classes are initialized, as described in JLS Section 12.4.2. Warning Normally it's a smell if a class needs to be explicitly initialized, because static state hurts system maintainability and testability. In cases when you have no choice while interoperating with a legacy framework, this method helps to keep the code less ugly.
| |
| newProxy | back to summary |
|---|---|
| public static <T> T newProxy(Class<T> interfaceType, InvocationHandler handler) Returns a proxy instance that implements
| |