Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.util
Class SimpleRuntime

java.lang.Object
  extended by org.nuxeo.runtime.AbstractRuntimeService
      extended by 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

Field Summary
static String NAME
           
static Version VERSION
           
 
Fields inherited from class org.nuxeo.runtime.AbstractRuntimeService
REDIRECT_JUL, REDIRECT_JUL_THRESHOLD
 
Constructor Summary
SimpleRuntime()
           
SimpleRuntime(File workingDir)
           
SimpleRuntime(String home)
           
 
Method Summary
 void deploy(URL url)
           
 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 undeploy(URL url)
           
 
Methods inherited from class org.nuxeo.runtime.AbstractRuntimeService
expandVars, getBundle, getBundleFile, getComponent, getComponent, getComponentInstance, getComponentInstance, getComponentManager, getContext, getDescription, getHome, getProperties, getProperty, getProperty, getService, getWarnings, isShuttingDown, isStarted, setHome, setProperty, start, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

VERSION

public static final Version VERSION
Constructor Detail

SimpleRuntime

public SimpleRuntime()

SimpleRuntime

public SimpleRuntime(String home)

SimpleRuntime

public SimpleRuntime(File workingDir)
Method Detail

getName

public 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(URL url)
            throws Exception
Throws:
Exception

undeploy

public void undeploy(URL url)
              throws Exception
Throws:
Exception

reloadProperties

public void reloadProperties()
                      throws Exception
Description copied from interface: RuntimeService
Reread all property files loaded at startup.

Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.