@Override public Map<String, PropertyValue> getProperties() { return PropertyValue.map(this.properties, getName()); }
@Override public Map<String, PropertyValue> getProperties() { return PropertyValue.map(this.properties,getName()); }
/** * If the property source is not scannable, an empty map is returned, otherwise * the current JNDI context is mapped to configuration map: * <ul> * <li>For each leave entry one entry is created.</li> * <li>The key is the fully path of parent contexts, separated by a '.'.</li> * <li>The value is the value returned from {@code String.valueOf(leaveObject)}.</li> * </ul> * @return a map representation of the JNDI tree. */ @Override public Map<String, PropertyValue> getProperties() { if(scannable){ try { return PropertyValue.map(toMap(this.context), getName()); } catch (NamingException e) { LOG.log(Level.WARNING, "Error scanning JNDI tree.", e); } } return Collections.emptyMap(); }