public class RuntimeObjectFactory<T extends RuntimeObjectContext>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
tracer |
Constructor and Description |
---|
RuntimeObjectFactory() |
RuntimeObjectFactory(T context) |
Modifier and Type | Method and Description |
---|---|
void |
closeAllocation()
Closes this object.
|
java.lang.String |
exportScopeAsString() |
static java.lang.ClassLoader |
getClassLoaderFor(java.lang.String type) |
java.util.Properties |
getMyProperties(RuntimeObject<T> ro) |
static java.util.List<java.lang.String> |
getRegisteredTypes()
Get a list of registered types.
|
java.util.List<RuntimeObject<T>> |
importScopeFromString(java.lang.String str,
java.util.function.Function<java.util.Properties,java.util.Properties> propertyModifier) |
static boolean |
isRegistered(java.lang.String type,
java.lang.Class<? extends RuntimeObject<?>> superClazz) |
RuntimeObject<T> |
newInstance(java.lang.String type) |
RuntimeObject<T> |
newObject(java.lang.String type,
java.util.Properties props) |
static void |
registerClass(java.lang.String type,
java.lang.Class<? extends RuntimeObject<?>> clazz) |
static void |
registerClassIfNew(java.lang.String type,
java.lang.Class<? extends RuntimeObject<?>> clazz) |
void |
setMyProperties(RuntimeObject<T> ro,
java.util.Properties props) |
public RuntimeObjectFactory()
public RuntimeObjectFactory(T context)
public static void registerClass(java.lang.String type, java.lang.Class<? extends RuntimeObject<?>> clazz)
public static void registerClassIfNew(java.lang.String type, java.lang.Class<? extends RuntimeObject<?>> clazz)
public static boolean isRegistered(java.lang.String type, java.lang.Class<? extends RuntimeObject<?>> superClazz)
public static java.util.List<java.lang.String> getRegisteredTypes()
public static java.lang.ClassLoader getClassLoaderFor(java.lang.String type)
public RuntimeObject<T> newInstance(java.lang.String type) throws java.lang.Exception
java.lang.Exception
public RuntimeObject<T> newObject(java.lang.String type, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public java.util.Properties getMyProperties(RuntimeObject<T> ro)
public void setMyProperties(RuntimeObject<T> ro, java.util.Properties props)
public java.lang.String exportScopeAsString() throws java.io.IOException
java.io.IOException
public java.util.List<RuntimeObject<T>> importScopeFromString(java.lang.String str, java.util.function.Function<java.util.Properties,java.util.Properties> propertyModifier) throws java.lang.Exception
java.lang.Exception
public void closeAllocation()
Copyright (C) 2003-2021 SQLstream, Inc.