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 |
RELOAD_ACTION |
static String |
RESET_ACTION |
static String |
RESTART_ACTION |
protected FeaturesRunner |
runner |
protected static String |
UNDEPLOY_ACTION |
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() |
void |
reload()
Reloads the components and preserve the current registry state.
|
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.
|
void |
undeploy(String... contribs) |
public static final String DEPLOY_ACTION
protected static final String UNDEPLOY_ACTION
public static final String RESTART_ACTION
public static final String RESET_ACTION
public static final String RELOAD_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.Exception
public void restart() throws Exception
Exception
public void reset() throws Exception
Exception
public void reload() throws Exception
ComponentManager
.Exception
public void reinject()
Copyright © 2018 Nuxeo. All rights reserved.