org.nuxeo.runtime.test
Class TestRuntime
java.lang.Object
org.nuxeo.runtime.AbstractRuntimeService
org.nuxeo.runtime.test.TestRuntime
- All Implemented Interfaces:
- RuntimeService
public class TestRuntime
- extends AbstractRuntimeService
A runtime service used for JUnit tests.
The Test Runtime has only one virtual bundle
- Author:
- Bogdan Stefanescu
Method Summary |
void |
deploy(java.net.URL url)
|
java.lang.String |
getName()
Gets the name of this runtime service. |
Version |
getVersion()
Gets the version of this runtime service. |
void |
reloadProperties()
Reread all property files loaded at startup. |
void |
stop()
Stops the runtime. |
void |
undeploy(java.net.URL url)
|
Methods inherited from class org.nuxeo.runtime.AbstractRuntimeService |
expandVars, getAdapterManager, getBundleFile, getComponent, getComponent, getComponentInstance, getComponentInstance, getComponentManager, getContext, getDescription, getHome, getProperties, getProperty, getProperty, getService, getWarnings, isStarted, setHome, setProperty, start, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
VERSION
public static final Version VERSION
TestRuntime
public TestRuntime()
getName
public java.lang.String getName()
- Description copied from interface:
RuntimeService
- Gets the name of this runtime service.
- Returns:
- the runtime service name
getVersion
public Version getVersion()
- Description copied from interface:
RuntimeService
- Gets the version of this runtime service.
- Returns:
- the runtime service version
deploy
public void deploy(java.net.URL url)
throws java.lang.Exception
- Throws:
java.lang.Exception
undeploy
public void undeploy(java.net.URL url)
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Description copied from interface:
RuntimeService
- Stops the runtime.
- Specified by:
stop
in interface RuntimeService
- Overrides:
stop
in class AbstractRuntimeService
- Throws:
java.lang.Exception
- if any exception occurred during shutdown
reloadProperties
public void reloadProperties()
throws java.lang.Exception
- Description copied from interface:
RuntimeService
- Reread all property files loaded at startup.
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.