/** * If not already created, a new <code>pool</code> element with the given value will be created. * Otherwise, the existing <code>pool</code> element will be returned. * @return a new or existing instance of <code>PoolType<DatasourceType<T>></code> */ public PoolType<DatasourceType<T>> getOrCreatePool() { Node node = childNode.getOrCreate("pool"); PoolType<DatasourceType<T>> pool = new PoolTypeImpl<DatasourceType<T>>(this, "pool", childNode, node); return pool; }
/** * If not already created, a new <code>pool</code> element with the given value will be created. * Otherwise, the existing <code>pool</code> element will be returned. * @return a new or existing instance of <code>PoolType<DatasourceType<T>></code> */ public PoolType<DatasourceType<T>> getOrCreatePool() { Node node = childNode.getOrCreate("pool"); PoolType<DatasourceType<T>> pool = new PoolTypeImpl<DatasourceType<T>>(this, "pool", childNode, node); return pool; }