public SharedResourceConfig toConfig() { validate(); return createConfig(); }
public SharedResourceConfig toConfig() { validate(); return createConfig(); }
@Override protected void validate() { super.validate(); greaterThanZero(this, "size", getSize()); }
@Override protected void validate() { super.validate(); greaterThanZero(this, "size", getSize()); }
@Override protected void validate() { super.validate(); notEmpty(this, "username", getUsername()); notEmpty(this, "password", getPassword()); notEmpty(this, "url", getUrl()); notEmpty(this, "driver", getDriver()); notNegative(this, "min-size", getMinSize()); greaterThanZero(this, "max-size", getMaxSize()); notNegativeOptional(this, "login-timeout", getLoginTimeout()); if (options != null) { options.validate(); } }
@Override protected void validate() { super.validate(); notEmpty(this, "username", getUsername()); notEmpty(this, "password", getPassword()); notEmpty(this, "url", getUrl()); notEmpty(this, "driver", getDriver()); notNegative(this, "min-size", getMinSize()); greaterThanZero(this, "max-size", getMaxSize()); notNegativeOptional(this, "login-timeout", getLoginTimeout()); if (options != null) { options.validate(); } }