01: /* CachingExcelDataLoader.java
02: *
03: * DDSteps - Data Driven JUnit Test Steps
04: * Copyright (C) 2005 Jayway AB
05: * www.ddsteps.org
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License version 2.1 as published by the Free Software Foundation.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, visit
18: * http://www.opensource.org/licenses/lgpl-license.php
19: */
20:
21: package org.ddsteps.data.excel;
22:
23: import org.ddsteps.data.DataLoader;
24: import org.ddsteps.data.support.DataLoaderFactory;
25: import org.ddsteps.data.support.DataLoaderProxySupport;
26:
27: /**
28: * DEPRECATED: Will be removed in 1.2.
29: * <p>
30: * Loads Excel files by the same name as the testcase, in the same package,
31: * using the testcase's own classloader.
32: * <p>
33: *
34: * @author adamskogman
35: * @version $Id: CachingExcelDataLoader.java,v 1.1 2005/08/31 13:22:12
36: * adamskogman Exp $
37: * @deprecated Use the (@link org.ddsteps.data.DelegatingDataLoader) backed by a
38: * (@link org.ddsteps.dataset.support.CachingDataSetLoader) instead.
39: * You can get it from (@link
40: * org.ddsteps.data.support.DataLoaderFactory#getCachingExcelDataLoader());
41: */
42: public class CachingExcelDataLoader extends DataLoaderProxySupport {
43:
44: /**
45: * No-args.
46: *
47: * @deprecated Use (@link DataLoaderFactory#getCachingExcelDataLoader()).
48: */
49: public CachingExcelDataLoader() {
50: super (getInstance());
51: }
52:
53: /**
54: * Use this to get a singleton if you are not using Spring.
55: *
56: * @return A singleton instance.
57: * @deprecated Use (@link DataLoaderFactory#getCachingExcelDataLoader())
58: * directly.
59: */
60: public static DataLoader getInstance() {
61: return DataLoaderFactory.getCachingExcelDataLoader();
62: }
63: }
|