Issue #1871 make Java data access class better match Python version

Change-Id: Ic3ab7e771add58a693420a16a349e8208852a051

Former-commit-id: 68c84fd8cc [formerly 21a59e4f9ab0e5a870b764259a1a0fc102f3b86f]
Former-commit-id: 4ac6480f52
This commit is contained in:
Matt Nash 2013-04-04 16:27:56 -05:00 committed by Gerrit Code Review
parent 826e64a990
commit 7ffd8efcf2

View file

@ -24,6 +24,7 @@ import com.raytheon.uf.common.dataaccess.exception.TimeAgnosticDataException;
import com.raytheon.uf.common.dataaccess.exception.UnsupportedOutputTypeException;
import com.raytheon.uf.common.dataaccess.geom.IGeometryData;
import com.raytheon.uf.common.dataaccess.grid.IGridData;
import com.raytheon.uf.common.dataaccess.impl.DefaultDataRequest;
import com.raytheon.uf.common.time.BinOffset;
import com.raytheon.uf.common.time.DataTime;
import com.raytheon.uf.common.time.TimeRange;
@ -172,6 +173,15 @@ public class DataAccessLayer {
return factory.getAvailableLocationNames(request);
}
/**
* Shortcut to creating a new request
*
* @return
*/
public static IDataRequest newDataRequest() {
return new DefaultDataRequest();
}
/**
* TODO: contemplate making this public to allow for special case handling
* Returns the factory that should process the request. Will never return