public class ClassCache extends Object implements Serializable
ClassCache this class handles dynamoically loaded java functions| Constructor and Description |
|---|
ClassCache()
Constructor - Create a new Class Cache of Class Information Hash Table
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String aClassName)
Class Name to add to the Hash list of Class Information
|
Object |
ClassCacheJavaExtensions(String aType,
Long aJavaExtensionsId,
DatabaseQuery aDatabaseAdapter) |
void |
clear()
Describe
clear method here. |
Object |
executeMethod(Method aMethod,
Object aClassObject,
Object[] anArgs) |
Object |
executeMethod(Object anObject,
String aMethodName) |
Object |
generateObject(String aClassName)
Returns a new Object based on the specified class name
|
Object |
generateObject(String aClassName,
Object[] aParams)
Returns a new Object based on the specified class name
|
Class<?> |
getClass(String aClassName)
Returns the Class Information for the specified class retrieved from cache
|
int |
getDefError() |
Method |
getMethod(String aClassName,
String aMethodName,
Class<?>[] aParams) |
Method[] |
getMethods(String aClassName) |
protected Class<?>[] |
getParameterTypeArray(Object[] params)
Returns a Class[] array that describes the class types of each object.
|
boolean |
load()
Preload Hash Table with default list
|
public ClassCache()
public void clear()
clear method here.public boolean load()
public void add(String aClassName)
aClassName - String Complete Class Namepublic Class<?> getClass(String aClassName)
aClassName - String Complete Class Namepublic Object executeMethod(Object anObject, String aMethodName) throws Exception
Exceptionpublic Object executeMethod(Method aMethod, Object aClassObject, Object[] anArgs) throws Exception
Exceptionpublic Object generateObject(String aClassName)
aClassName - String Complete Class Namepublic Object generateObject(String aClassName, Object[] aParams)
aClassName - String Complete Class NameaParams - paramspublic Object ClassCacheJavaExtensions(String aType, Long aJavaExtensionsId, DatabaseQuery aDatabaseAdapter) throws Exception
Exceptionprotected Class<?>[] getParameterTypeArray(Object[] params) throws IllegalArgumentException
params - an Object[] array of miscellaneous primitive object types.IllegalArgumentExceptionpublic int getDefError()
Copyright © 2020. All rights reserved.