private static void put(final Properties properties, final String key, final Object value) { if (key != null && value != null) { properties.put(key, PropertyPlaceHolderHelper.value(String.valueOf(value))); } } }
private static void put(final Properties properties, final String key, final Object value) { if (key == null) { return; } if (value == null) { return; } properties.put(key, PropertyPlaceHolderHelper.value(String.valueOf(value))); } }
private static void put(final Properties properties, final String key, final Object value) { if (key == null) { return; } if (value == null) { return; } properties.put(key, PropertyPlaceHolderHelper.value(String.valueOf(value))); }
private static void put(final Properties properties, final String key, final Object value) { if (key == null) { return; } if (value == null) { return; } properties.put(key, PropertyPlaceHolderHelper.value(String.valueOf(value))); } }
private static Properties holds(final Properties properties, final boolean cache) { // we can put null values in SuperProperties, since properties is often of this type we need to tolerate it final Properties updated = new SuperProperties(); if (properties == null) { return updated; } for (final Map.Entry<Object, Object> entry : properties.entrySet()) { final Object rawValue = entry.getValue(); if (rawValue instanceof String) { final String value = (String) rawValue; updated.put(entry.getKey(), cache ? value(value) : simpleValue(value)); } else { updated.put(entry.getKey(), rawValue); } } return updated; }
private static Properties holds(final Properties properties, final boolean cache) { // we can put null values in SuperProperties, since properties is often of this type we need to tolerate it final Properties updated = new SuperProperties(); if (properties == null) { return updated; } for (final Map.Entry<Object, Object> entry : properties.entrySet()) { final Object rawValue = entry.getValue(); if (rawValue instanceof String) { final String value = (String) rawValue; updated.put(entry.getKey(), cache ? value(value) : simpleValueAsStringOrCharArray(value)); } else { updated.put(entry.getKey(), rawValue); } } return updated; }
final List<URL> urls = new ArrayList<URL>(); for (final String path : paths) { urls.add(new File(PropertyPlaceHolderHelper.value(ProvisioningUtil.realLocation(path))).toURI().normalize().toURL());
final List<URL> urls = new ArrayList<>(); for (final String path : paths) { final Set<String> values = ProvisioningUtil.realLocation(PropertyPlaceHolderHelper.value(path)); for (final String v : values) { urls.add(new File(v).toURI().normalize().toURL());
final Map<ResourceInfo, Resource> resourcesMap = new HashMap<ResourceInfo, Resource>(resources.size()); for (final Resource resource : resources) { final String originalId = PropertyPlaceHolderHelper.value(resource.getId()); final String modulePrefix = module.getModuleId() + "/"; resource.setId(modulePrefix + replaceJavaAndSlash(originalId)); resource.setJndi(PropertyPlaceHolderHelper.value(resource.getJndi())); resource.getProperties().putAll(PropertyPlaceHolderHelper.holds(resource.getProperties()));
final Map<ResourceInfo, Resource> resourcesMap = new HashMap<ResourceInfo, Resource>(resources.size()); for (final Resource resource : resources) { final String originalId = PropertyPlaceHolderHelper.value(resource.getId()); final String modulePrefix = module.getModuleId() + "/"; resource.setId(modulePrefix + replaceJavaAndSlash(originalId)); resource.setJndi(PropertyPlaceHolderHelper.value(resource.getJndi()));