예제 #1
0
  @Override
  public void initializeRuntimes(List<RuntimeDefinition> runtimeDefinitions) {

    Map<String, SeamRuntime> map = new HashMap<String, SeamRuntime>();

    for (RuntimeDefinition runtimeDefinition : runtimeDefinitions) {
      if (runtimeDefinition.isEnabled()) {
        String type = runtimeDefinition.getType();
        if (SEAM.equals(type)) {
          addSeam(map, runtimeDefinition, runtimeDefinition.getLocation());
        }
      }
      initializeRuntimes(runtimeDefinition.getIncludedRuntimeDefinitions());
    }
    SeamRuntimeManager.getInstance().save();
  }
예제 #2
0
 public void initializeRuntimes(List<RuntimeDefinition> runtimeDefinitions) {
   for (RuntimeDefinition runtimeDefinition : runtimeDefinitions) {
     String type = runtimeDefinition.getType();
     if (runtimeDefinition.isEnabled() && !esbExists(runtimeDefinition)) {
       if (ESB.equals(type)) {
         JBossESBRuntime runtime = new JBossESBRuntime();
         if (!runtimeDefinition.getName().startsWith(ESB_PREFIX))
           runtime.setName(ESB_PREFIX + runtimeDefinition.getName());
         runtime.setHomeDir(runtimeDefinition.getLocation().getAbsolutePath());
         runtime.setConfiguration(DEFAULT_CONFIGURATION);
         runtime.setVersion(runtimeDefinition.getVersion());
         JBossRuntimeManager.getInstance().addRuntime(runtime);
       }
     }
     initializeRuntimes(runtimeDefinition.getIncludedRuntimeDefinitions());
   }
 }