Revision 30580 branches/v2_0_0_prep/libraries/libFMap_dalindex/src/org/gvsig/fmap/dal/index/spatial/gt2/Gt2IndexLibrary.java

View differences:

Gt2IndexLibrary.java
31 31
import org.gvsig.fmap.dal.DALLocator;
32 32
import org.gvsig.fmap.dal.DataTypes;
33 33
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
34
import org.gvsig.tools.locator.BaseLibrary;
35
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
34
import org.gvsig.tools.library.LibraryException;
35
import org.gvsig.tools.library.impl.BaseLibrary;
36 36

  
37

  
38 37
public class Gt2IndexLibrary extends BaseLibrary {
39 38

  
40
    public void initialize() throws ReferenceNotRegisteredException {
41
    	super.initialize();
39
	@Override
40
	protected void doInitialize() throws LibraryException {
41
	}
42 42

  
43
    }
44

  
45
	public void postInitialize() throws ReferenceNotRegisteredException {
43
	@Override
44
	protected void doPostInitialize() throws LibraryException {
46 45
    	DataManagerProviderServices man = (DataManagerProviderServices) DALLocator.getDataManager();
47 46

  
48 47
    	if (!man.getFeatureIndexProviders().contains(GT2Quadtree.NAME)) {
49 48
			man.registerFeatureIndexProvider(GT2Quadtree.NAME, "Quadtree index based on Geotools 2",
50 49
					GT2Quadtree.class, DataTypes.GEOMETRY);
51 50
    	}
52
    }
51
	}
53 52
}
54

  

Also available in: Unified diff