for (ConfigDeployment configDeployment : configDeployments) if (configDeployment.getStream() != null) logger.debug("Commencing parse of input stream for source: " + configDeployment.getName()); parse(configDeployment.getStream()); configDeployment.setDeploymentStatus(ConfigDeployment.STATUS_OK); logger.error("Input stream invalid - skipped for source: " + configDeployment.getName() + "' ", t); configDeployment.setDeploymentStatus("Skipped - invalid: " + stringWriter.toString()); logger.debug("Completed parse of input stream for source: " + configDeployment.getName()); logger.debug("Input stream not available - skipped for source: " + configDeployment.getName()); configDeployment.setDeploymentStatus("Skipped - not available");
/** * Initialises the config service - via bootstrap */ public List<ConfigDeployment> initConfig() { putSections(new ArrayList<ConfigSection>()); putSectionsByArea(new HashMap<String, List<ConfigSection>>()); putEvaluators(new HashMap<String, Evaluator>()); putGlobalConfig(new ConfigImpl()); // Add the built-in evaluators String stringCompare = "string-compare"; addEvaluator(stringCompare, createEvaluator(stringCompare, StringEvaluator.class.getName())); String objectType = "object-type"; addEvaluator(objectType, createEvaluator(objectType, ObjectTypeEvaluator.class.getName())); ConfigDeployment builtin = new ConfigDeployment("<Built-in evaluators>", null); builtin.setDeploymentStatus(ConfigDeployment.STATUS_OK); List<ConfigDeployment> builtins = new ArrayList<ConfigDeployment>(); builtins.add(builtin); return builtins; }
if (is != null) configDeployments.add(new ConfigDeployment(sourceString, is));
/** * Initialises the config service - via bootstrap */ public List<ConfigDeployment> initConfig() { putSections(new ArrayList<ConfigSection>()); putSectionsByArea(new HashMap<String, List<ConfigSection>>()); putEvaluators(new HashMap<String, Evaluator>()); putGlobalConfig(new ConfigImpl()); // Add the built-in evaluators String stringCompare = "string-compare"; addEvaluator(stringCompare, createEvaluator(stringCompare, StringEvaluator.class.getName())); String objectType = "object-type"; addEvaluator(objectType, createEvaluator(objectType, ObjectTypeEvaluator.class.getName())); ConfigDeployment builtin = new ConfigDeployment("<Built-in evaluators>", null); builtin.setDeploymentStatus(ConfigDeployment.STATUS_OK); List<ConfigDeployment> builtins = new ArrayList<ConfigDeployment>(); builtins.add(builtin); return builtins; }
configs.add(new ConfigDeployment(resource.getDescription(), resource.getInputStream()));
for (ConfigDeployment configDeployment : configDeployments) if (configDeployment.getStream() != null) logger.debug("Commencing parse of input stream for source: " + configDeployment.getName()); parse(configDeployment.getStream()); configDeployment.setDeploymentStatus(ConfigDeployment.STATUS_OK); logger.error("Input stream invalid - skipped for source: " + configDeployment.getName() + "' ", t); configDeployment.setDeploymentStatus("Skipped - invalid: " + stringWriter.toString()); logger.debug("Completed parse of input stream for source: " + configDeployment.getName()); logger.debug("Input stream not available - skipped for source: " + configDeployment.getName()); configDeployment.setDeploymentStatus("Skipped - not available");
/** * Initialises the config service - via bootstrap */ public List<ConfigDeployment> initConfig() { putSections(new ArrayList<ConfigSection>()); putSectionsByArea(new HashMap<String, List<ConfigSection>>()); putEvaluators(new HashMap<String, Evaluator>()); putGlobalConfig(new ConfigImpl()); // Add the built-in evaluators String stringCompare = "string-compare"; addEvaluator(stringCompare, createEvaluator(stringCompare, StringEvaluator.class.getName())); String objectType = "object-type"; addEvaluator(objectType, createEvaluator(objectType, ObjectTypeEvaluator.class.getName())); ConfigDeployment builtin = new ConfigDeployment("<Built-in evaluators>", null); builtin.setDeploymentStatus(ConfigDeployment.STATUS_OK); List<ConfigDeployment> builtins = new ArrayList<ConfigDeployment>(); builtins.add(builtin); return builtins; }
if (is != null) configDeployments.add(new ConfigDeployment(sourceString, is));
for (ConfigDeployment configDeployment : configDeployments) if (configDeployment.getStream() != null) logger.debug("Commencing parse of input stream for source: " + configDeployment.getName()); parse(configDeployment.getStream()); configDeployment.setDeploymentStatus(ConfigDeployment.STATUS_OK); logger.error("Input stream invalid - skipped for source: " + configDeployment.getName() + "' ", t); configDeployment.setDeploymentStatus("Skipped - invalid: " + stringWriter.toString()); logger.debug("Completed parse of input stream for source: " + configDeployment.getName()); logger.debug("Input stream not available - skipped for source: " + configDeployment.getName()); configDeployment.setDeploymentStatus("Skipped - not available");
if (is != null) configDeployments.add(new ConfigDeployment(sourceString, is));
configs.add(new ConfigDeployment(resource.getDescription(), resource.getInputStream()));