org.jboss.dashboard.factory
Class InitialModulesManager
java.lang.Object
org.jboss.dashboard.factory.InitialModulesManager
- All Implemented Interfaces:
- Startable
@ApplicationScoped
public class InitialModulesManager
- extends Object
- implements Startable
A platform component that manages the loading and execution of
all the registered InitialModule components at start-up time.
|
Field Summary |
static org.slf4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static transient org.slf4j.Logger log
InitialModulesManager
public InitialModulesManager()
getPriority
public Priority getPriority()
- Specified by:
getPriority in interface Startable
start
public void start()
throws Exception
- Specified by:
start in interface Startable
- Throws:
Exception
isInitialModulesEnabled
public boolean isInitialModulesEnabled()
setInitialModulesEnabled
public void setInitialModulesEnabled(boolean initialModulesEnabled)
shouldInstallModules
protected boolean shouldInstallModules()
throws Exception
- Check if another module is currently installing initial modules.
If any module is installing initial modules, install it and register node status to installing_modules.
If another module is installing initial modules, skip initial modules installation for this node.
IMPORTANT NOTE: Perform the change node status in bbdd in a new transaction.
NOTE: BZ-1014612
- Returns:
- If this node should install initial modules.
- Throws:
Exception
finishInstallation
protected void finishInstallation()
throws Exception
- Finished node installing modules. Change node status into bbdd.
IMPORTANT NOTE: Perform the change node status in bbdd in a new transaction.
NOTE: BZ-1014612
- Throws:
Exception
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.