Dashboard Builder Commons 6.0.0.Final

org.jboss.dashboard.factory
Class InitialModulesManager

java.lang.Object
  extended by 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
           
 
Constructor Summary
InitialModulesManager()
           
 
Method Summary
protected  void finishInstallation()
          Finished node installing modules.
 Priority getPriority()
           
 boolean isInitialModulesEnabled()
           
 void setInitialModulesEnabled(boolean initialModulesEnabled)
           
protected  boolean shouldInstallModules()
          Check if another module is currently installing initial modules.
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static transient org.slf4j.Logger log
Constructor Detail

InitialModulesManager

public InitialModulesManager()
Method Detail

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

Dashboard Builder Commons 6.0.0.Final

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.