public class HotDeployer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HotDeployer.ActionHandler
Deploy actions are usually used by features to customize the deployment of the runtime feature (which is using
the DeaultDeployAction)
|
protected class |
HotDeployer.DefaultDeployHandler
This action has no next action and will deploy the contributions and then reload the component manager
|
Modifier and Type | Field and Description |
---|---|
static String |
DEPLOY_ACTION |
protected RuntimeHarness |
harness |
protected HotDeployer.ActionHandler |
head |
static String |
RESET_ACTION |
static String |
RESTART_ACTION |
protected FeaturesRunner |
runner |
Constructor and Description |
---|
HotDeployer(FeaturesRunner runner,
RuntimeHarness harness) |
Modifier and Type | Method and Description |
---|---|
HotDeployer |
addHandler(HotDeployer.ActionHandler action)
Add a custom deploy action that wraps the default action.
|
void |
deploy(String... contribs)
Deploy the given list of contributions.
|
void |
reinject() |
boolean |
removeHandler(HotDeployer.ActionHandler handler)
Remove the given handler if already registered
|
void |
reset()
Restart the components and revert to the initial registry snapshot if any.
|
void |
restart()
Restart the components and preserve the current registry state.
|
public static final String DEPLOY_ACTION
public static final String RESTART_ACTION
public static final String RESET_ACTION
protected FeaturesRunner runner
protected RuntimeHarness harness
protected HotDeployer.ActionHandler head
public HotDeployer(FeaturesRunner runner, RuntimeHarness harness)
public HotDeployer addHandler(HotDeployer.ActionHandler action)
public boolean removeHandler(HotDeployer.ActionHandler handler)
public void deploy(String... contribs) throws Exception
RuntimeHarness.deployContrib(String,String)
will be used to deploy the contribution. If
bundleId:componentPath expression is prefixed by a '@' character then
RuntimeHarness.deployTestContrib(String,String)
will be used to deploy the contribution.Exception
public void restart() throws Exception
Exception
public void reset() throws Exception
Exception
public void reinject()
Copyright © 2017 Nuxeo. All rights reserved.