public AbstractPlatformConfiguration() { starterconfig = new StarterConfiguration(); rootconfig = new RootComponentConfiguration(); }
@Override public void addComponent(Class clazz) { getStarterConfig().addComponent(clazz); }
/** * Checks this configuration for consistency errors. */ protected void checkConsistency() { starterconfig.checkConsistency(); rootconfig.checkConsistency(); }
addComponent((String) stringValue); setDebugFutures(true); setDebugServices(true); setDebugSteps(true); setDefaultTimeout(to); setNoStackCompaction(true); setOpenGl(false); Object tmpmoni = getValue(StarterConfiguration.MONITORING); IMonitoringService.PublishEventLevel moni = IMonitoringService.PublishEventLevel.OFF; if(tmpmoni instanceof Boolean) setMonitoring(moni); setValue(key, value);
@Override public List<String> getComponents() { return getStarterConfig().getComponents(); }
@Override public String getConfigurationFile() { return getStarterConfig().getConfigurationFile(); }
@Override public String getComponentFactory() { return getStarterConfig().getComponentFactory(); }
@Override public boolean getAutoShutdown() { return getStarterConfig().getAutoShutdown(); }
@Override public boolean getBooleanValue(String key) { return getStarterConfig().getBooleanValue(key); }
if(val==null && model != null && configurationInfo != null) val = getArgumentValueFromModel(key);
/** * Enhance this config with given other config. * Will overwrite all values that are set in the other config. * @param other */ public void enhanceWith(PlatformConfiguration other) { starterconfig.enhanceWith(other.getStarterConfig()); rootconfig.enhanceWith(other.getRootConfig()); }
/** * Constructor that creates a new Configuration based on an args object. * (which can be a Map or a String array). * Does not parse the args - no public use! * @param args */ protected AbstractPlatformConfiguration(String[] args) { starterconfig = new StarterConfiguration(); rootconfig = new RootComponentConfiguration(); rootconfig.setProgramArguments(args); }
@Override public void addComponent(String path) { getStarterConfig().addComponent(path); }
/** * Copy constructor. * @param config AbstractPlatformConfiguration */ public AbstractPlatformConfiguration(AbstractPlatformConfiguration config) { this.starterconfig = new StarterConfiguration(config.getStarterConfig()); this.rootconfig = new RootComponentConfiguration(config.getRootConfig()); }