@Override protected void validate() { super.validate(); validUrl(this, "url", url); }
@Override protected void validate() { super.validate(); validUrl(this, "url", url); }
@Override protected void validate() { super.validate(); notEmpty(this, "url", getUrl()); }
@Override protected void validate() { super.validate(); notEmpty(this, "url", getUrl()); }
@Override protected void validate() { super.validate(); notEmpty(this, "host", getHost()); validPort(this, "port", getPort()); }
public InputConfig toConfig() { if (isTemplate()) { throw new ConfigurationException("Tried to use abstract bean \"" + getName() + "\""); } validate(); return createConfig(); }
public InputConfig toConfig() { if (isTemplate()) { throw new ConfigurationException("Tried to use abstract bean \"" + getName() + "\""); } validate(); return createConfig(); }
@Override protected void validate() { super.validate(); notEmpty(this, "pool", getPool()); notEmpty(this, "queries", getQueries()); }
@Override protected void validate() { super.validate(); notEmpty(this, "pool", getPool()); notEmpty(this, "queries", getQueries()); }
@Override protected void validate() { super.validate(); notEmpty(this, "hosts", getHosts()); final String[] hostsArray = getHosts().split(" "); if (hostsArray.length == 0) { throw new ConfigurationException("Specify at least one host configuration in hosts"); } for (final String hostEntry : hostsArray) { final String[] spec = hostEntry.split(":"); if (spec.length != 2) { throw new ConfigurationException("Invalid host specification: " + hostEntry+". Should be in the form <host>:<port>."); } try { validPort(this, "port", Integer.parseInt(spec[1])); } catch (final NumberFormatException e) { throw new ConfigurationException("Invalid port in the host specification: " + hostEntry); } } }
@Override protected void validate() { super.validate(); notEmpty(this, "host", getHost()); validPort(this, "port", getPort()); if (commands != null) { for (final RedisCommandXBean cmd : commands) { cmd.validate(); } } }
@Override protected void validate() { super.validate(); notEmpty(this, "host", getHost()); validPort(this, "port", getPort()); if (commands != null) { for (final RedisCommandXBean cmd : commands) { cmd.validate(); } } }