org.openejb.loader
Class SystemInstance
java.lang.Object
org.openejb.loader.SystemInstance
public class SystemInstance
- extends 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 Properties getProperties()
getProperty
public String getProperty(String key)
getProperty
public String getProperty(String key,
String defaultValue)
setProperty
public Object setProperty(String key,
String value)
getHome
public FileUtils getHome()
getBase
public FileUtils getBase()
getClassPath
public ClassPath getClassPath()
getClassLoader
public ClassLoader getClassLoader()
getObject
public Object getObject(String name)
setObject
public Object setObject(String name,
Object value)
init
public static void init(Properties properties)
throws Exception
- Throws:
Exception
get
public static SystemInstance get()
Copyright © 1999-2010 OpenEJB. All Rights Reserved.