@Override public String toString() { return String.format( "%s[name=%s, type=%s, version=%s, viewPath=%s, appClass=%s, configuration= %s properties]", getClass().getSimpleName(), applicationDesc.getName(), applicationDesc.getType(), applicationDesc.getVersion(), applicationDesc.getViewPath(), applicationDesc.getAppClass(), applicationDesc.getConfiguration() == null ? 0 : applicationDesc.getConfiguration().size() ); }
protected void setAppConfig(String resourceName) { try { applicationDesc.setConfiguration(Configuration.fromResource(resourceName)); } catch (JAXBException e) { LOG.error("Failed to load configuration template from " + resourceName, e); throw new RuntimeException("Failed to load configuration template from " + resourceName, e); } }
List<Property> propertyList = provider.getApplicationDesc().getConfiguration().getProperties(); for (Property p : propertyList) { appConfig.put(p.getName(), p.getValue());
@Override public String toString() { return String.format("ApplicationDesc [type=%s, name=%s, version=%s, viewPath=%s, configuration= %s properties, description=%s", getType(), getName(), getVersion(), getViewPath(), getConfiguration() == null ? 0 : getConfiguration().size(), getDescription()); }
@Override public String toString() { return String.format("ApplicationDesc [type=%s, name=%s, version=%s, appClass=%s, viewPath=%s, jarpath=%s, providerClass=%s, configuration= %s properties, description=%s", getType(), getName(), getVersion(), getAppClass(), getViewPath(), getJarPath(), getProviderClass(), getConfiguration() == null ? 0 : getConfiguration().size(), getDescription()); }