public final class RuntimeLocator extends Object
| Modifier and Type | Method and Description |
|---|---|
static Runtime |
createRuntime(PropertiesProvider props)
Create the default runtime instance from the given properties.
|
static Runtime |
createRuntime(RuntimeFactory factory,
PropertiesProvider props)
Create the default runtime instance from the given factory and properties.
|
static Runtime |
getRequiredRuntime()
Returns the default runtime instance.
|
static Runtime |
getRuntime()
Returns the default runtime instance or
null if it has not been created. |
static void |
releaseRuntime()
Release the default runtime instance.
|
public static Runtime getRuntime()
null if it has not been created.public static Runtime getRequiredRuntime()
IllegalStateException - If the Runtime has not been created.public static Runtime createRuntime(RuntimeFactory factory, PropertiesProvider props)
IllegalStateException - If a runtime has already been createdpublic static Runtime createRuntime(PropertiesProvider props)
The RuntimeFactory is determined
ServiceLoader of type RuntimeFactory
public static void releaseRuntime()
Copyright © 2014 JBoss by Red Hat. All rights reserved.