@Override public String toString() { return mProperties.toString(); } }
public String getProperties() { Properties properties = new Properties(); properties.putAll(connectProperties); if (properties.containsKey("password")) { properties.put("password", "******"); } return properties.toString(); }
public String getProperties() { if (this.properties == null) { return null; } Properties properties = new Properties(this.properties); if (properties.contains("password")) { properties.put("password", "******"); } return properties.toString(); }
@Override public synchronized String toString() { super.putAll( storageMap ); String result = super.toString(); super.clear(); return result; }
public String getProperties() { Properties properties = new Properties(); properties.putAll(connectProperties); if (properties.containsKey("password")) { properties.put("password", "******"); } return properties.toString(); }
/** * afterPropertiesSet * 将自己 添加 property listener */ public void afterPropertiesSet() { for (Properties properties : propertiesArray) { if (properties instanceof ReloadableProperties) { logger.debug("add property listener: " + properties.toString()); ((ReloadableProperties) properties).addReloadablePropertiesListener(this); } } }
public String toString() { return getDelegate().toString(); }
/** * destroy * 删除 property listener * * @throws Exception */ public void destroy() throws Exception { for (Properties properties : propertiesArray) { if (properties instanceof ReloadableProperties) { logger.debug("remove property listener: " + properties.toString()); ((ReloadableProperties) properties).removeReloadablePropertiesListener(this); } } }
@Override public String toString() { if (names != null) { return getProperties().toString(); } return tokens == null ? "" : Arrays.asList(tokens).toString(); }
public EsStorage(String... configuration) { if (!ObjectUtils.isEmpty(configuration)) { try { for (String string : configuration) { // replace ; with line separators properties.load(new StringReader(string)); log.trace(properties.toString()); } } catch (IOException ex) { throw new EsHadoopIllegalArgumentException("Cannot parse options " + Arrays.toString(configuration), ex); } } }
@Override protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws BeansException { props.putAll(copyOfGlobalProperties()); logger.debug("Placeholder props: {}", props.toString()); this.mergedProperties = props; super.processProperties(beanFactoryToProcess, props); }
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
@Override public String toString() { return withMaskedPasswords().asProperties().toString(); } };
public Properties toProperties() throws IllegalAccessException, InvocationTargetException, ClassNotFoundException { Properties props = new Properties(); String[] names = propertyNames(); for (int i = 0; names != null && i < names.length; i++) { Object o = beeLine.getReflector().invoke(this, "get" + names[i], new Object[0]); props.setProperty(PROPERTY_PREFIX + names[i], o == null ? "" : o.toString()); } beeLine.debug("properties: " + props.toString()); return props; }