| java.lang.Object org.apache.openejb.loader.SystemInstance
SystemInstance | public class SystemInstance (Code) | | This class aims to be the one and only static in the entire system
A static, singleton, instance of this class can be created with the
SystemInstance.init(Properties) method
It is assumed that only one singleton per classloader is possible in any given VM
Thus loading this instance in a classloader will mean there can only be one OpenEJB
instance for that classloader and all children classloaders.
version: $Revision: 570634 $ $Date: 2007-08-28 21:31:49 -0700 $ |
getComponent | public T getComponent(Class<T> type)(Code) | | I'm not sure how this will play out, but I've used class instances instead of strings
for lookups as class instances are classloader scoped and there is an implicit "namespace"
associated with that. Theoretically, you can't lookup things that you can't already see
in your classloader.
Parameters: type - the object associated with the class type or null throws: IllegalStateException - of the component isn't found |
getStartTime | public long getStartTime()(Code) | | |
hasProperty | public boolean hasProperty(String propName)(Code) | | Parameters: propName - property name true when property is set; false otherwise |
isInitialized | public static boolean isInitialized()(Code) | | |
removeComponent | public T removeComponent(Class<T> type)(Code) | | |
setComponent | public T setComponent(Class<T> type, T value)(Code) | | Parameters: type - the class type of the component required |
setProperty | public Object setProperty(String key, String value, boolean isExternalProperty)(Code) | | Parameters: key - property name Parameters: value - property value Parameters: isExternalProperty - should the property be set to System by System.setProperty(StringString) property value |
|
|