Esempio n. 1
0
  public void stop() throws Exception {
    System.out.println("STOPPING SERVER MANAGER:" + AppContext.getName());

    System.out.println("      Stopping TaskManager");
    TaskManager.getInstance().stop();

    System.out.println("      Unloading ScriptManager");
    ScriptManager.setInstance(null);

    System.out.println("      Unloading DataSources");
    DsLoader.getInstance().undeploy();

    System.out.println("      Unloading Schema Manager");
    SchemaManager.setInstance(null);

    System.out.println("      Unloading Template Provider");
    TemplateProvider.setInstance(null);
  }
Esempio n. 2
0
  public void start() throws Exception {
    System.out.println("      Initializing Properties");
    AppContext.load();

    System.out.println("STARTING SERVER MGMT:" + AppContext.getName());

    System.out.println("      Initializing Template Manager");
    TemplateProvider.setInstance(new TemplateProviderImpl());

    System.out.println("      Initializing Schema Manager");
    SchemaManager.setInstance(new SchemaManagerImpl());

    // load datasources
    System.out.println("      Loading Datasources");
    DsLoader.getInstance().deploy();

    // load scripts
    System.out.println("      Initializing ScriptManager");
    ScriptManager.setInstance(new ScriptManagerImpl());
    ScriptManager.getInstance().load();

    System.out.println("      Initializing TaskManager");
    TaskManager.getInstance().start();
  }
Esempio n. 3
0
 public void reloadTemplate(String name) {
   TemplateProvider.getInstance().clear(name);
 }
Esempio n. 4
0
 public void reloadTemplates() {
   TemplateProvider.getInstance().clear(null);
 }