Package org.nuxeo.runtime.util
Class SimpleRuntime
- java.lang.Object
-
- org.nuxeo.runtime.AbstractRuntimeService
-
- org.nuxeo.runtime.util.SimpleRuntime
-
- All Implemented Interfaces:
RuntimeService
public class SimpleRuntime extends AbstractRuntimeService
A runtime service used for JUnit tests.The Test Runtime has only one virtual bundle.
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.runtime.AbstractRuntimeService
AbstractRuntimeService.LogConfig
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEstatic VersionVERSION-
Fields inherited from class org.nuxeo.runtime.AbstractRuntimeService
context, isShuttingDown, isStarted, logConfig, manager, messageHandler, properties, REDIRECT_JUL, REDIRECT_JUL_THRESHOLD, workingDir
-
-
Constructor Summary
Constructors Constructor Description SimpleRuntime()SimpleRuntime(File workingDir)SimpleRuntime(String home)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name of this runtime service.VersiongetVersion()Gets the version of this runtime service.voidreloadProperties()Reread all property files loaded at startup.-
Methods inherited from class org.nuxeo.runtime.AbstractRuntimeService
createComponentManager, doStart, doStop, expandVars, getBuiltinFeatureURL, getBundle, getBundleFile, getComponent, getComponentInstance, getComponentManager, getContext, getDescription, getErrorLoggerThread, getHome, getMessageHandler, getProperties, getProperty, getProperty, getService, getStatusMessage, isShuttingDown, isStarted, loadConfig, setHome, setProperty, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.RuntimeService
getComponent, getComponentInstance
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
VERSION
public static final Version VERSION
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:RuntimeServiceGets the name of this runtime service.- Returns:
- the runtime service name
-
getVersion
public Version getVersion()
Description copied from interface:RuntimeServiceGets the version of this runtime service.- Returns:
- the runtime service version
-
reloadProperties
public void reloadProperties()
Description copied from interface:RuntimeServiceReread all property files loaded at startup.
-
-