public enum JavaReflectionCache extends java.lang.Enum<JavaReflectionCache>
Enum Constant and Description |
---|
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getAppClassLoader() |
java.lang.Class<?> |
getClass(java.lang.String className)
returns class.
|
java.lang.reflect.Constructor<?> |
getConstructor(java.lang.String className,
java.lang.Class<?>... arguments)
Returns constructor.
|
java.lang.reflect.Field |
getField(java.lang.Class<?> cls,
java.lang.String name)
returns field from class or super-classes.
|
java.lang.reflect.Method |
getMethod(java.lang.String className,
java.lang.String methodName,
java.lang.Class<?>[] arguments)
Returns method.
|
java.lang.Class |
getPojo(java.lang.String className) |
java.security.ProtectionDomain |
getProtectionDomain() |
void |
init()
Initialize.
|
void |
setAppClassLoader(java.lang.ClassLoader classLoader) |
void |
setAppProtectionDomain(java.security.ProtectionDomain appProtectionDomain) |
static JavaReflectionCache |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaReflectionCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaReflectionCache INSTANCE
public static JavaReflectionCache[] values()
for (JavaReflectionCache c : JavaReflectionCache.values()) System.out.println(c);
public static JavaReflectionCache valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void init()
public java.lang.ClassLoader getAppClassLoader()
public void setAppClassLoader(java.lang.ClassLoader classLoader)
public java.security.ProtectionDomain getProtectionDomain()
public void setAppProtectionDomain(java.security.ProtectionDomain appProtectionDomain)
public java.lang.Class<?> getClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
- java.lang.ClassNotFoundException
public java.lang.reflect.Method getMethod(java.lang.String className, java.lang.String methodName, java.lang.Class<?>[] arguments) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException
className
- methodName
- arguments
- java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchMethodException
public java.lang.reflect.Constructor<?> getConstructor(java.lang.String className, java.lang.Class<?>... arguments) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException
className
- arguments
- java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchMethodException
public java.lang.reflect.Field getField(java.lang.Class<?> cls, java.lang.String name) throws java.lang.SecurityException, java.lang.NoSuchFieldException
cls
- name
- java.lang.SecurityException
java.lang.NoSuchFieldException
public java.lang.Class getPojo(java.lang.String className)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.