org.openejb.loader
Class SystemInstance
java.lang.Object
org.openejb.loader.SystemInstance
public class SystemInstance
- extends java.lang.Object
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 init(props) 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: 2172 $ $Date: 2005-09-20 16:58:27 -0700 (Tue, 20 Sep 2005) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getStartTime
public long getStartTime()
getProperties
public java.util.Properties getProperties()
getProperty
public java.lang.String getProperty(java.lang.String key)
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
setProperty
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
getHome
public FileUtils getHome()
getBase
public FileUtils getBase()
getClassPath
public ClassPath getClassPath()
getClassLoader
public java.lang.ClassLoader getClassLoader()
getObject
public java.lang.Object getObject(java.lang.String name)
setObject
public java.lang.Object setObject(java.lang.String name,
java.lang.Object value)
init
public static void init(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public static SystemInstance get()
Copyright © 1999-2011 OpenEJB. All Rights Reserved.