| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_NAME |
| Constructor and Description |
|---|
ClassRegistry() |
ClassRegistry(ObjectDataTypeManager odtm) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
static Object |
executeGetMethod(Method m,
Object api)
Call to execute the getter method
|
static Object |
executeSetMethod(Method m,
Object api,
Object arg)
Call to execute the set method
|
static Method |
findMethod(Map<String,Method> mapMethods,
String methodName,
String className) |
ObjectDataTypeManager |
getObjectDataTypeManager() |
Map<String,Method> |
getReadClassMethods(String className) |
ObjectScriptEngine |
getReadScriptEngine() |
Class<?> |
getRegisteredClass(String className) |
List<Class<?>> |
getRegisteredClasses() |
Class<?> |
getRegisteredClassUsingTableName(String tableName) |
Map<String,Method> |
getWriteClassMethods(String className) |
static void |
print(Map m)
Utility method for debugging to print out the key and methods for a class
|
void |
registerClass(Class<?> clz) |
void |
unregisterClass(Class<?> clz) |
public static final String OBJECT_NAME
public ClassRegistry()
public ClassRegistry(ObjectDataTypeManager odtm)
public void registerClass(Class<?> clz)
public void unregisterClass(Class<?> clz)
public ObjectDataTypeManager getObjectDataTypeManager()
public ObjectScriptEngine getReadScriptEngine()
public Map<String,Method> getReadClassMethods(String className) throws TranslatorException
TranslatorExceptionpublic Map<String,Method> getWriteClassMethods(String className) throws TranslatorException
TranslatorExceptionpublic static Object executeSetMethod(Method m, Object api, Object arg) throws Exception
m - is the method to executeapi - is the object to execute the method onarg - is the argument to be passed to the set methodExceptionpublic static Object executeGetMethod(Method m, Object api) throws Exception
m - is the method to executeapi - is the object to execute the method onExceptionpublic static Method findMethod(Map<String,Method> mapMethods, String methodName, String className) throws TranslatorException
TranslatorExceptionpublic void cleanUp()
public static void print(Map m)
m - Copyright © 2017 JBoss by Red Hat. All rights reserved.