|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeHarness
TODO: Move this to org.nuxeo.runtime package
Method Summary | |
---|---|
void |
addWorkingDirectoryConfigurator(WorkingDirectoryConfigurator config)
|
void |
deploy(java.lang.String contrib)
Deprecated. use deployContrib() instead |
void |
deployBundle(java.lang.String bundle)
Deploys a whole OSGI bundle. |
void |
deployContrib(java.lang.String contrib)
Deprecated. use the less ambiguous deployContrib(String, String) |
void |
deployContrib(java.lang.String bundle,
java.lang.String contrib)
Deploys a contribution from a given bundle. |
void |
deployFolder(java.io.File folder,
java.lang.ClassLoader loader)
|
RuntimeContext |
deployTestContrib(java.lang.String bundle,
java.lang.String contrib)
Deploys an XML contribution from outside a bundle. |
RuntimeContext |
deployTestContrib(java.lang.String bundle,
java.net.URL contrib)
|
void |
fireFrameworkStarted()
Fires the event FrameworkEvent.STARTED . |
java.io.File |
getWorkingDir()
Gets the framework working directory. |
boolean |
isStarted()
|
void |
start()
|
void |
stop()
|
void |
undeploy(java.lang.String contrib)
Deprecated. use undeployContrib(String, String) instead |
void |
undeployContrib(java.lang.String contrib)
Deprecated. use undeployContrib(String, String) instead |
void |
undeployContrib(java.lang.String bundle,
java.lang.String contrib)
Undeploys a contribution from a given bundle. |
Method Detail |
---|
java.io.File getWorkingDir()
void fireFrameworkStarted() throws java.lang.Exception
FrameworkEvent.STARTED
.
java.lang.Exception
void deployBundle(java.lang.String bundle) throws java.lang.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 name
java.lang.Exception
void undeployContrib(java.lang.String bundle, java.lang.String contrib) throws java.lang.Exception
The path will be relative to the bundle root.
Example:
undeployContrib("org.nuxeo.ecm.core", "OSGI-INF/CoreExtensions.xml")
bundle
- the bundlecontrib
- the contribution
java.lang.Exception
@Deprecated void undeployContrib(java.lang.String contrib)
undeployContrib(String, String)
instead
@Deprecated void undeploy(java.lang.String contrib)
undeployContrib(String, String)
instead
RuntimeContext deployTestContrib(java.lang.String bundle, java.net.URL contrib) throws java.lang.Exception
java.lang.Exception
RuntimeContext deployTestContrib(java.lang.String bundle, java.lang.String contrib) throws java.lang.Exception
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 bundle
java.lang.Exception
void deployContrib(java.lang.String bundle, java.lang.String contrib) throws java.lang.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.
java.lang.Exception
@Deprecated void deployContrib(java.lang.String contrib)
deployContrib(String, String)
The first contribution file found by the class loader will be used. You have no guarantee in case of name collisions.
contrib
- the relative path to the contribution file@Deprecated void deploy(java.lang.String contrib)
deployContrib()
instead
void start() throws java.lang.Exception
java.lang.Exception
void stop() throws java.lang.Exception
java.lang.Exception
boolean isStarted()
void deployFolder(java.io.File folder, java.lang.ClassLoader loader) throws java.lang.Exception
java.lang.Exception
void addWorkingDirectoryConfigurator(WorkingDirectoryConfigurator config)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |