Package org.nuxeo.runtime.test.runner
Interface RuntimeHarness
- All Known Implementing Classes:
NXRuntimeTestCase
,RuntimeHarnessImpl
public interface RuntimeHarness
TODO: Move this to org.nuxeo.runtime package
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deployBundle
(String bundle) Deploys a whole OSGI bundle.void
deployContrib
(String bundle, String contrib) Deploys a contribution from a given bundle.deployPartial
(String bundle, Set<TargetExtensions> targetExtensions) Deploys a subset of a Bundle defined per the targetExtensions parametervoid
Resume the runtimeRuntime context for deploymentOSGI bridgeGets the framework working directory.boolean
void
start()
void
stop()
void
undeployContrib
(String bundle, String contrib) Undeploys a contribution from a given bundle.
-
Method Details
-
getWorkingDir
File getWorkingDir()Gets the framework working directory. -
fireFrameworkStarted
Resume the runtime- Throws:
Exception
-
deployBundle
Deploys a whole OSGI bundle.The lookup is first done on symbolic name, as set in
MANIFEST.MF
and then falls back to the bundle url (e.g.,nuxeo-platform-search-api
) for backwards compatibility.- Parameters:
bundle
- the symbolic name- Throws:
Exception
-
undeployContrib
Undeploys a contribution from a given bundle.The path will be relative to the bundle root. Example:
undeployContrib("org.nuxeo.ecm.core", "OSGI-INF/CoreExtensions.xml")
- Parameters:
bundle
- the bundlecontrib
- the contribution- Throws:
Exception
-
deployContrib
Deploys a contribution from a given bundle.The path will be relative to the bundle root. Example:
deployContrib("org.nuxeo.ecm.core", "OSGI-INF/CoreExtensions.xml")
For compatibility reasons the name of the bundle may be a jar name, but this use is discouraged and deprecated.
- Parameters:
bundle
- the name of the bundle to peek the contrib incontrib
- the path to contrib in the bundle.- Throws:
Exception
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
isStarted
boolean isStarted() -
deployPartial
RuntimeContext deployPartial(String bundle, Set<TargetExtensions> targetExtensions) throws Exception Deploys a subset of a Bundle defined per the targetExtensions parameter- Parameters:
bundle
- the name of the componenttargetExtensions
- Set of allowed TargetExtensions in the final contribution- Throws:
Exception
- Since:
- 9.1
-
addWorkingDirectoryConfigurator
-
getContext
RuntimeContext getContext()Runtime context for deployment- Since:
- 5.4.2
-
getOSGiAdapter
OSGiAdapter getOSGiAdapter()OSGI bridge- Since:
- 5.4.2
-