@Override
public void validate() throws ValidateException
{
if (this.maxPoolSize != null && this.maxPoolSize < 0)
throw new ValidateException(bundle.invalidNegative(Tag.MAX_POOL_SIZE.getLocalName()));
if (this.minPoolSize != null && this.minPoolSize < 0)
throw new ValidateException(bundle.invalidNegative(Tag.MIN_POOL_SIZE.getLocalName()));
if (this.minPoolSize != null && this.maxPoolSize != null)
{
if (minPoolSize.intValue() > maxPoolSize.intValue())
throw new ValidateException(bundle.notValidNumber(minPoolSize.toString(),
Tag.MIN_POOL_SIZE.getLocalName()));
}
if (this.flushStrategy == null)
throw new ValidateException(bundle.nullValue(Tag.FLUSH_STRATEGY.getLocalName()));
}