public interface RuntimeHarness
Modifier and Type | Method and Description |
---|---|
void |
addWorkingDirectoryConfigurator(WorkingDirectoryConfigurator config) |
void |
deployBundle(String bundle)
Deploys a whole OSGI bundle.
|
void |
deployContrib(String bundle,
String contrib)
Deploys a contribution from a given bundle.
|
void |
deployFolder(File folder,
ClassLoader loader)
Deprecated.
since 10.2, unused and badly implemented
|
RuntimeContext |
deployPartial(String bundle,
Set<TargetExtensions> targetExtensions)
Deploys a subset of a Bundle defined per the targetExtensions parameter
|
RuntimeContext |
deployTestContrib(String bundle,
String contrib)
Deprecated.
since 10.1, use
deployContrib(String, String) |
RuntimeContext |
deployTestContrib(String bundle,
URL contrib)
Deprecated.
since 10.1, use
deployContrib(String, String) |
void |
fireFrameworkStarted()
Resume the runtime
|
List<String> |
getClassLoaderFiles()
Deprecated.
since 10.2, unused and useless
|
RuntimeContext |
getContext()
Runtime context for deployment
|
OSGiAdapter |
getOSGiAdapter()
OSGI bridge
|
Properties |
getProperties()
Deprecated.
since 10.2, unused and useless
|
File |
getWorkingDir()
Gets the framework working directory.
|
boolean |
isRestart()
Deprecated.
since 10.2, unused and useless
|
boolean |
isStarted() |
void |
restart()
Deprecated.
since 10.2, unused and useless
|
void |
start() |
void |
stop() |
void |
undeployContrib(String bundle,
String contrib)
Undeploys a contribution from a given bundle.
|
File getWorkingDir()
void fireFrameworkStarted() throws Exception
Exception
void deployBundle(String bundle) throws Exception
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.
bundle
- the symbolic nameException
void undeployContrib(String bundle, String contrib) throws Exception
The path will be relative to the bundle root. Example:
undeployContrib("org.nuxeo.ecm.core", "OSGI-INF/CoreExtensions.xml")
bundle
- the bundlecontrib
- the contributionException
@Deprecated RuntimeContext deployTestContrib(String bundle, URL contrib) throws Exception
deployContrib(String, String)
Exception
@Deprecated RuntimeContext deployTestContrib(String bundle, String contrib) throws Exception
deployContrib(String, String)
This should be used by tests wiling to deploy test contribution as part of a real bundle.
The bundle owner is important since the contribution may depend on resources deployed in that bundle.
Note that the owner bundle MUST be an already deployed bundle.
bundle
- the bundle that becomes the contribution ownercontrib
- the contribution to deploy as part of the given bundleException
void deployContrib(String bundle, String contrib) throws Exception
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.
bundle
- the name of the bundle to peek the contrib incontrib
- the path to contrib in the bundle.Exception
boolean isStarted()
RuntimeContext deployPartial(String bundle, Set<TargetExtensions> targetExtensions) throws Exception
bundle
- the name of the componenttargetExtensions
- Set of allowed TargetExtensions in the final contributionException
@Deprecated void deployFolder(File folder, ClassLoader loader) throws Exception
Exception
void addWorkingDirectoryConfigurator(WorkingDirectoryConfigurator config)
@Deprecated Properties getProperties()
RuntimeContext getContext()
OSGiAdapter getOSGiAdapter()
@Deprecated boolean isRestart()
@Deprecated void restart() throws Exception
Exception
@Deprecated List<String> getClassLoaderFiles() throws URISyntaxException
URISyntaxException
Copyright © 2018 Nuxeo. All rights reserved.