1 /*
2 ORDI - Ontology Repository and Data Integration
3
4 Copyright (c) 2004-2007, OntoText Lab. / SIRMA
5
6 This library is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the Free
8 Software Foundation; either version 2.1 of the License, or (at your option)
9 any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 details.
14 You should have received a copy of the GNU Lesser General Public License along
15 with this library; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 package com.ontotext.ordi.tripleset.impl;
19
20 import java.util.Map;
21
22 import com.ontotext.ordi.tripleset.DataSourceImpl;
23 import com.ontotext.ordi.tripleset.TFactory;
24 import com.ontotext.ordi.tripleset.TSource;
25
26 public abstract class TSourceImpl extends DataSourceImpl implements TSource {
27
28 private TFactory factory;
29
30 public TSourceImpl(Map<Object, Object> properties) {
31 super(properties);
32 }
33
34 public synchronized TFactory getTriplesetFactory() {
35 if (factory == null) {
36 factory = new TFactoryImpl();
37 }
38 return factory;
39 }
40 }