Revision 35142

View differences:

branches/v2_0_0_prep/extensions/extWFS2/src/org/gvsig/fmap/dal/store/wfs/WFSLibrary.java
27 27
 
28 28
package org.gvsig.fmap.dal.store.wfs;
29 29

  
30
import org.gvsig.fmap.dal.DALLibrary;
30 31
import org.gvsig.fmap.dal.DALLocator;
31 32
import org.gvsig.fmap.dal.serverexplorer.wfs.WFSServerExplorer;
32 33
import org.gvsig.fmap.dal.serverexplorer.wfs.WFSServerExplorerParameters;
......
37 38
import org.gvsig.tools.extensionpoint.ExtensionPoint;
38 39
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
39 40
import org.gvsig.tools.library.AbstractLibrary;
40
import org.gvsig.tools.library.Library;
41 41
import org.gvsig.tools.library.LibraryException;
42 42

  
43 43
/**
......
45 45
 */
46 46
public class WFSLibrary extends AbstractLibrary {
47 47

  
48
	public WFSLibrary() {
49
		super(WFSLibrary.class,Library.TYPE.IMPL);
50
		require(MapContextLibrary.class);
51
	}
52
	
48
    @Override
49
    public void doRegistration() {
50
        registerAsServiceOf(DALLibrary.class);
51
        require(MapContextLibrary.class);
52
    }
53 53

  
54 54
	@Override
55 55
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/extensions/extDalTransformEventTheme/src/org/gvsig/app/eventtheme/EventThemeTransformLibrary.java
41 41
 */
42 42
public class EventThemeTransformLibrary extends AbstractLibrary {
43 43

  
44
	public EventThemeTransformLibrary() {
45
		super(EventThemeTransformLibrary.class, TYPE.IMPL);
46
	}
44
    @Override
45
    public void doRegistration() {
46
        registerAsImplementationOf(EventThemeTransformLibrary.class);
47
    }
47 48

  
48 49
	@Override
49 50
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/extensions/extDwg/src/org/gvsig/dwg/fmap/dal/store/dwg/legend/DWGLegendLibrary.java
37 37
import org.gvsig.metadata.MetadataLocator;
38 38
import org.gvsig.tools.dynobject.DynClass;
39 39
import org.gvsig.tools.library.AbstractLibrary;
40
import org.gvsig.tools.library.Library;
41 40
import org.gvsig.tools.library.LibraryException;
42 41

  
43 42
/**
......
46 45
 */
47 46
public class DWGLegendLibrary extends AbstractLibrary {
48 47

  
49
	public DWGLegendLibrary() {
50
		super(DWGLegendLibrary.class, Library.TYPE.IMPL);
51
		require(MetadataLibrary.class);
52
		require(DWGLibrary.class);
53
		require(DALLibrary.class);
54
	}
55
	
48
    @Override
49
    public void doRegistration() {
50
        registerAsImplementationOf(DWGLegendLibrary.class);
51
        require(MetadataLibrary.class);
52
        require(DWGLibrary.class);
53
        require(DALLibrary.class);
54
    }
55

  
56 56
	@Override
57 57
	protected void doInitialize() throws LibraryException {
58 58
	}
branches/v2_0_0_prep/extensions/extDwg/src/org/gvsig/dwg/fmap/dal/store/dwg/DWGLibrary.java
40 40
import org.gvsig.tools.dynobject.DynField;
41 41
import org.gvsig.tools.dynobject.DynObjectManager;
42 42
import org.gvsig.tools.library.AbstractLibrary;
43
import org.gvsig.tools.library.Library;
44 43
import org.gvsig.tools.library.LibraryException;
45 44

  
46 45
public class DWGLibrary extends AbstractLibrary {
47 46

  
48
	public DWGLibrary() {
49
		super(DWGLibrary.class, Library.TYPE.IMPL);
50
		require(DALLibrary.class);
51
		require(DALFileLibrary.class);
52
		require(MetadataLibrary.class);
53
	}
54
		
47
    @Override
48
    public void doRegistration() {
49
        registerAsImplementationOf(DWGLibrary.class);
50
        require(DALLibrary.class);
51
        require(DALFileLibrary.class);
52
        require(MetadataLibrary.class);
53
    }
54

  
55 55
	@Override
56 56
	protected void doInitialize() throws LibraryException {
57 57
	}
branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/FmapRasterLibrary.java
33 33
import org.gvsig.fmap.raster.layers.StatusLayerRaster;
34 34
import org.gvsig.raster.RasterLibrary;
35 35
import org.gvsig.tools.library.AbstractLibrary;
36
import org.gvsig.tools.library.Library;
37 36
import org.gvsig.tools.library.LibraryException;
38 37

  
39 38
/**
......
41 40
 */
42 41
public class FmapRasterLibrary extends AbstractLibrary{
43 42

  
44
	public FmapRasterLibrary() {
45
		super(FmapRasterLibrary.class, Library.TYPE.IMPL);
46
		require(DALLibrary.class);
47
		require(MapContextLibrary.class);
48
		require(RasterLibrary.class);
49
	}
50
	
43
    @Override
44
    public void doRegistration() {
45
        registerAsServiceOf(MapContextLibrary.class);
46
        require(DALLibrary.class);
47
        require(RasterLibrary.class);
48
    }
49

  
51 50
	@Override
52 51
	protected void doInitialize() throws LibraryException {
53 52
		// TODO Auto-generated method stub
branches/v2_0_0_prep/extensions/extGPE-gvSIG/src/org/gvsig/fmap/dal/store/gpe/DALGPELibrary.java
49 49
import org.gvsig.fmap.geom.operation.writegml2.WriteGml2Operation;
50 50
import org.gvsig.metadata.exceptions.MetadataException;
51 51
import org.gvsig.tools.library.AbstractLibrary;
52
import org.gvsig.tools.library.Library;
53 52
import org.gvsig.tools.library.LibraryException;
54 53
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
55 54
import org.gvsig.xmlschema.lib.api.XMLSchemaLocator;
......
60 59
 */
61 60
public class DALGPELibrary extends AbstractLibrary {
62 61
	
63
	public DALGPELibrary() {
64
		super(DALGPELibrary.class, Library.TYPE.IMPL);
65
		require(DALLibrary.class);
66
		require(DALFileLibrary.class);
67
	}
68
	
62
    @Override
63
    public void doRegistration() {
64
        registerAsServiceOf(DALLibrary.class);
65
        require(DALFileLibrary.class);
66
    }
67

  
69 68
	protected void doInitialize() throws LibraryException {
70 69
		// Do nothing
71 70
	}
branches/v2_0_0_prep/extensions/extWCS/src/org/gvsig/wcs/fmap/WCSLibrary.java
28 28
package org.gvsig.wcs.fmap;
29 29

  
30 30
import org.gvsig.fmap.mapcontext.MapContextLibrary;
31
import org.gvsig.fmap.raster.FmapRasterLibrary;
32
import org.gvsig.symbology.SymbologyLibrary;
33 31
import org.gvsig.tools.library.AbstractLibrary;
34
import org.gvsig.tools.library.Library;
35 32
import org.gvsig.tools.library.LibraryException;
36 33
import org.gvsig.wcs.fmap.layers.FLyrWCS;
37 34

  
......
40 37
 */
41 38
public class WCSLibrary extends AbstractLibrary{
42 39

  
43
	public WCSLibrary() {
44
		super(WCSLibrary.class,Library.TYPE.IMPL);
45
		require(MapContextLibrary.class);
46
	}
47
	
40
    @Override
41
    public void doRegistration() {
42
        registerAsServiceOf(MapContextLibrary.class);
43
    }
44

  
48 45
	@Override
49 46
	protected void doInitialize() throws LibraryException {
50 47
		// TODO Auto-generated method stub
branches/v2_0_0_prep/extensions/extWMS/src/org/gvsig/wms/fmap/WMSLibrary.java
30 30
import org.gvsig.fmap.mapcontext.MapContextLibrary;
31 31
import org.gvsig.fmap.raster.FmapRasterLibrary;
32 32
import org.gvsig.tools.library.AbstractLibrary;
33
import org.gvsig.tools.library.Library;
34 33
import org.gvsig.tools.library.LibraryException;
35 34
import org.gvsig.wms.fmap.layers.FLyrWMS;
36 35

  
......
39 38
 */
40 39
public class WMSLibrary extends AbstractLibrary{
41 40

  
42
	public WMSLibrary() {
43
		super(WMSLibrary.class,Library.TYPE.IMPL);
44
		require(MapContextLibrary.class);
45
		require(FmapRasterLibrary.class);
46
	}
47
	
41
    @Override
42
    public void doRegistration() {
43
        registerAsServiceOf(MapContextLibrary.class);
44
        require(FmapRasterLibrary.class);
45
    }
48 46

  
49 47
	@Override
50 48
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/extensions/extCatalog/src/org/gvsig/fmap/dal/store/catalog/CatalogDataStoreLibrary.java
35 35
 */
36 36
public class CatalogDataStoreLibrary extends AbstractLibrary {
37 37

  
38
	public CatalogDataStoreLibrary() {
39
		super(CatalogDataStoreLibrary.class, TYPE.API);
40
	}
38
    public void doRegistration() {
39
        registerAsAPI(CatalogDataStoreLibrary.class);
40
    }
41 41

  
42 42
	protected void doInitialize() throws LibraryException {
43 43
	}
branches/v2_0_0_prep/extensions/extDalTransformJoin/src/org/gvsig/app/join/JoinTransformLibrary.java
41 41
 */
42 42
public class JoinTransformLibrary extends AbstractLibrary {
43 43

  
44
	public JoinTransformLibrary() {
45
		super(JoinTransformLibrary.class, TYPE.IMPL);
46
		require(DALLibrary.class);
47
	}
44
    @Override
45
    public void doRegistration() {
46
        registerAsImplementationOf(JoinTransformLibrary.class);
47
        require(DALLibrary.class);
48
    }
48 49

  
49 50
	@Override
50 51
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/extensions/extDalTransform/src/org/gvsig/app/daltransform/DataTransformLibrary.java
30 30
import org.gvsig.app.ApplicationLibrary;
31 31
import org.gvsig.fmap.dal.DALLibrary;
32 32
import org.gvsig.tools.library.AbstractLibrary;
33
import org.gvsig.tools.library.Library;
34 33
import org.gvsig.tools.library.LibraryException;
35 34
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
36 35

  
......
39 38
 */
40 39
public class DataTransformLibrary extends AbstractLibrary  {
41 40

  
42
	public DataTransformLibrary() {
43
		super(DataTransformLibrary.class, Library.TYPE.API);
44
		require(DALLibrary.class);
45
		require(ApplicationLibrary.class);
46
	}
47
	
41
    @Override
42
    public void doRegistration() {
43
        registerAsAPI(DataTransformLibrary.class);
44
        require(DALLibrary.class);
45
        require(ApplicationLibrary.class);
46
    }
47

  
48 48
	@Override
49 49
	protected void doInitialize() throws LibraryException {
50 50
	}
branches/v2_0_0_prep/extensions/extDalTransform/src/org/gvsig/app/daltransform/impl/DefaultDataTransformLibrary.java
34 34
import org.gvsig.app.daltransform.gui.impl.DefaultDataTransformWizard;
35 35
import org.gvsig.fmap.dal.DALLibrary;
36 36
import org.gvsig.tools.library.AbstractLibrary;
37
import org.gvsig.tools.library.Library;
38 37
import org.gvsig.tools.library.LibraryException;
39 38

  
40 39
/**
......
42 41
 */
43 42
public class DefaultDataTransformLibrary extends AbstractLibrary {
44 43
		
45
	public DefaultDataTransformLibrary() {
46
		super(DataTransformLibrary.class, Library.TYPE.IMPL);
47
		require(DALLibrary.class);
48
		require(ApplicationLibrary.class);
49
	}
50
	
44
    @Override
45
    public void doRegistration() {
46
        registerAsImplementationOf(DataTransformLibrary.class);
47
        require(DALLibrary.class);
48
        require(ApplicationLibrary.class);
49
    }
50

  
51 51
	@Override
52 52
	protected void doInitialize() throws LibraryException {
53 53
        //Register the default DataTransformManager
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/PluginsLibrary.java
3 3
import org.gvsig.andami.impl.DefaultPluginsManager;
4 4
import org.gvsig.andami.ui.mdiManager.WindowInfo;
5 5
import org.gvsig.tools.library.AbstractLibrary;
6
import org.gvsig.tools.library.Library;
7 6
import org.gvsig.tools.library.LibraryException;
8 7
import org.gvsig.tools.util.Caller;
9 8
import org.gvsig.tools.util.impl.DefaultCaller;
......
11 10

  
12 11
public class PluginsLibrary extends AbstractLibrary {
13 12

  
14
    public PluginsLibrary() {
15
        super(PluginsLibrary.class,Library.TYPE.API );
13
    @Override
14
    public void doRegistration() {
15
        registerAsAPI(PluginsLibrary.class);
16 16
    }
17
    
17

  
18 18
    protected void doInitialize() throws LibraryException {
19 19
        PluginsLocator.registerDefaultManager(DefaultPluginsManager.class);
20 20
    }
branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/impl/DefaultCatalogLibrary.java
44 44
import org.gvsig.catalog.srw.drivers.SRWCatalogServiceDriver;
45 45
import org.gvsig.catalog.z3950.drivers.Z3950CatalogServiceDriver;
46 46
import org.gvsig.tools.library.AbstractLibrary;
47
import org.gvsig.tools.library.Library;
48 47
import org.gvsig.tools.library.LibraryException;
49 48

  
50 49
/**
......
52 51
 */
53 52
public class DefaultCatalogLibrary extends AbstractLibrary {
54 53
	
55
	public DefaultCatalogLibrary() {
56
		super(CatalogLibrary.class, Library.TYPE.IMPL);
57
	}
58
	
54
    @Override
55
    public void doRegistration() {
56
        registerAsImplementationOf(CatalogLibrary.class);
57
    }
58

  
59 59
	@Override
60 60
	protected void doInitialize() throws LibraryException {
61 61
        //Register the default CatalogManager
branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/CatalogLibrary.java
28 28
package org.gvsig.catalog;
29 29

  
30 30
import org.gvsig.tools.library.AbstractLibrary;
31
import org.gvsig.tools.library.Library;
32 31
import org.gvsig.tools.library.LibraryException;
33 32
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
34 33

  
......
37 36
 */
38 37
public class CatalogLibrary extends AbstractLibrary  {
39 38

  
40
	public CatalogLibrary() {
41
		super(CatalogLibrary.class, Library.TYPE.API);
42
	}
43
	
39
    @Override
40
    public void doRegistration() {
41
        registerAsAPI(CatalogLibrary.class);
42
    }
43

  
44 44
	@Override
45 45
	protected void doInitialize() throws LibraryException {
46 46
	}
branches/v2_0_0_prep/applications/appGazetteer/src/org/gvsig/gazetteer/GazetteerLibrary.java
36 36
 */
37 37
public class GazetteerLibrary extends AbstractLibrary  {
38 38

  
39
	public GazetteerLibrary() {
40
		super(GazetteerLibrary.class, TYPE.API);
41
	}
42
		
39
    @Override
40
    public void doRegistration() {
41
        registerAsAPI(GazetteerLibrary.class);
42
    }
43

  
43 44
	@Override
44 45
	protected void doInitialize() throws LibraryException {
45 46
	}
branches/v2_0_0_prep/applications/appGazetteer/src/org/gvsig/gazetteer/impl/DefaultGazetteerLibrary.java
43 43
 */
44 44
public class DefaultGazetteerLibrary extends AbstractLibrary {
45 45
	
46
	public DefaultGazetteerLibrary() {
47
		super(GazetteerLibrary.class, TYPE.IMPL);
48
	}
46
    @Override
47
    public void doRegistration() {
48
        registerAsImplementationOf(GazetteerLibrary.class);
49
    }
49 50

  
50 51
	@Override
51 52
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/imp/AppgvSIGDefaultImplLibrary.java
30 30
import org.gvsig.app.ApplicationLocator;
31 31
import org.gvsig.installer.lib.api.InstallerLibrary;
32 32
import org.gvsig.tools.library.AbstractLibrary;
33
import org.gvsig.tools.library.Library;
34 33
import org.gvsig.tools.library.LibraryException;
35 34

  
36 35
/**
......
39 38
 */
40 39
public class AppgvSIGDefaultImplLibrary extends AbstractLibrary {
41 40

  
42
	public AppgvSIGDefaultImplLibrary() {
43
		super(ApplicationLibrary.class, Library.TYPE.IMPL);
41
    @Override
42
    public void doRegistration() {
43
        registerAsImplementationOf(ApplicationLibrary.class);
44 44
        require(InstallerLibrary.class);
45
	}
45
    }
46 46

  
47 47
	@Override
48 48
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/ApplicationLibrary.java
31 31
package org.gvsig.app;
32 32

  
33 33
import org.gvsig.app.project.DefaultProject;
34
import org.gvsig.app.tools.swing.serv.field.crs.JCRSDynFieldComponentFactory;
35
import org.gvsig.app.tools.swing.serv.field.date.JDateDynFieldComponentFactory;
36
//import org.gvsig.app.tools.swing.serv.field.date.JDateDynFieldComponentFactory;
37
//import org.gvsig.app.tools.swing.serv.field.dynobject.CRSAndDateDynObjectTest;
38
import org.gvsig.fmap.dal.DataTypes;
39 34
import org.gvsig.fmap.mapcontrol.MapControl;
40 35
import org.gvsig.tools.library.AbstractLibrary;
41
import org.gvsig.tools.library.Library;
42 36
import org.gvsig.tools.library.LibraryException;
43 37
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
44
import org.gvsig.tools.service.spi.ServiceManager;
45
import org.gvsig.tools.swing.spi.ToolsSwingServiceLocator;
46 38

  
47 39
/**
48 40
 * @author 2008-2009 jmvivo
......
51 43
 */
52 44
public class ApplicationLibrary extends AbstractLibrary {
53 45

  
54
	public ApplicationLibrary() {
55
		super(ApplicationLibrary.class, Library.TYPE.API);
56
		require(MapControl.class);
57
	}
46
    @Override
47
    public void doRegistration() {
48
        registerAsAPI(ApplicationLibrary.class);
49
        require(MapControl.class);
50
    }
58 51
	
59 52
	@Override
60 53
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libProjection/src/org/cresques/ProjectionLibrary.java
22 22
package org.cresques;
23 23

  
24 24
import org.cresques.cts.IProjection;
25

  
25 26
import org.gvsig.fmap.crs.CRSFactory;
26 27
import org.gvsig.fmap.crs.persistence.ProjectionPersistenceFactory;
27 28
import org.gvsig.tools.ToolsLibrary;
28 29
import org.gvsig.tools.ToolsLocator;
29 30
import org.gvsig.tools.dataTypes.DataTypesManager;
30 31
import org.gvsig.tools.library.AbstractLibrary;
31
import org.gvsig.tools.library.Library;
32 32
import org.gvsig.tools.library.LibraryException;
33 33

  
34 34
public class ProjectionLibrary extends AbstractLibrary {
35 35

  
36
	public ProjectionLibrary() {
37
		super(ProjectionLibrary.class,Library.TYPE.API);
38
		require(ToolsLibrary.class);
39
	}
40
	
36
    @Override
37
    public void doRegistration() {
38
        registerAsAPI(ProjectionLibrary.class);
39
        require(ToolsLibrary.class);
40
    }
41

  
41 42
	protected void doInitialize() throws LibraryException {
42 43
	}
43 44

  
branches/v2_0_0_prep/libraries/libProjection/src/org/cresques/impl/CresquesCtsLibrary.java
31 31
import org.gvsig.tools.ToolsLocator;
32 32
import org.gvsig.tools.dataTypes.DataTypesManager;
33 33
import org.gvsig.tools.library.AbstractLibrary;
34
import org.gvsig.tools.library.Library;
35 34
import org.gvsig.tools.library.LibraryException;
36 35

  
37 36
public class CresquesCtsLibrary extends AbstractLibrary {
38 37

  
39
    public CresquesCtsLibrary() {
40
        super(ProjectionLibrary.class, Library.TYPE.IMPL);
38
    @Override
39
    public void doRegistration() {
40
        registerAsImplementationOf(ProjectionLibrary.class);
41 41
    }
42 42

  
43 43
    protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libEvaluator_SQLJEP/src/org/gvsig/tools/evaluator/sqljep/SQLJEPLibrary.java
21 21
*/
22 22
package org.gvsig.tools.evaluator.sqljep;
23 23

  
24
import org.medfoster.sqljep.BaseJEP;
25
import org.medfoster.sqljep.function.ToDate;
26

  
24 27
import org.gvsig.fmap.geom.GeometryLibrary;
28
import org.gvsig.tools.ToolsLibrary;
25 29
import org.gvsig.tools.evaluator.sqljep.function.Boundary;
26 30
import org.gvsig.tools.evaluator.sqljep.function.Equals;
27 31
import org.gvsig.tools.evaluator.sqljep.function.GeomFromText;
28 32
import org.gvsig.tools.evaluator.sqljep.function.Intersects;
29 33
import org.gvsig.tools.evaluator.sqljep.function.Overlaps;
30 34
import org.gvsig.tools.library.AbstractLibrary;
31
import org.gvsig.tools.library.Library;
32 35
import org.gvsig.tools.library.LibraryException;
33
import org.medfoster.sqljep.BaseJEP;
34
import org.medfoster.sqljep.function.ToDate;
35 36

  
36 37
public class SQLJEPLibrary extends AbstractLibrary {
37 38

  
38
	public SQLJEPLibrary() {
39
		super(SQLJEPLibrary.class, Library.TYPE.IMPL);
40
		require(GeometryLibrary.class);
41
	}
42
	
39
    @Override
40
    public void doRegistration() {
41
        registerAsServiceOf(ToolsLibrary.class);
42
        require(GeometryLibrary.class);
43
    }
44

  
43 45
	@Override
44 46
	protected void doInitialize() throws LibraryException {
45 47
	}
branches/v2_0_0_prep/libraries/libCompat/src/org/gvsig/compat/se/SECompatLibrary.java
33 33
import org.gvsig.compat.se.lang.StandardStringUtils;
34 34
import org.gvsig.compat.se.net.SEDownloader;
35 35
import org.gvsig.tools.library.AbstractLibrary;
36
import org.gvsig.tools.library.Library;
37 36
import org.gvsig.tools.library.LibraryException;
38 37

  
39 38
/**
......
44 43
 */
45 44
public class SECompatLibrary extends AbstractLibrary {
46 45
	
47
	public SECompatLibrary() {
48
		super(CompatLibrary.class, Library.TYPE.IMPL);
49
	}
46
    public void doRegistration() {
47
        registerAsImplementationOf(CompatLibrary.class);
48
    }
50 49

  
51 50
	protected void doInitialize() throws LibraryException {
52 51
		CompatLocator.registerStringUtils(StandardStringUtils.class);
branches/v2_0_0_prep/libraries/libCompat/src/org/gvsig/compat/CompatLibrary.java
31 31
import org.gvsig.compat.lang.StringUtils;
32 32
import org.gvsig.compat.net.Downloader;
33 33
import org.gvsig.tools.library.AbstractLibrary;
34
import org.gvsig.tools.library.Library;
35 34
import org.gvsig.tools.library.LibraryException;
36 35
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
37 36

  
......
42 41
 */
43 42
public class CompatLibrary extends AbstractLibrary {
44 43

  
45
	public CompatLibrary() {
46
		super(CompatLibrary.class, Library.TYPE.API);
47
	}
48
	
44
    public void doRegistration() {
45
        registerAsAPI(CompatLibrary.class);
46
    }
47

  
49 48
	protected void doInitialize() throws LibraryException {
50 49
		// Nothing to do
51 50
	}
branches/v2_0_0_prep/libraries/libFMap_dalRaster/src/org/gvsig/fmap/dal/store/raster/RasterStoreLibrary.java
39 39
import org.gvsig.metadata.exceptions.MetadataException;
40 40
import org.gvsig.raster.RasterLibrary;
41 41
import org.gvsig.tools.library.AbstractLibrary;
42
import org.gvsig.tools.library.Library;
43 42
import org.gvsig.tools.library.LibraryException;
44 43

  
45 44
public class RasterStoreLibrary extends AbstractLibrary {
46 45

  
47
	public RasterStoreLibrary() {
48
		super(RasterStoreLibrary.class,Library.TYPE.IMPL);
49
		require(DALLibrary.class);
50
		require(DALFileLibrary.class);
51
		require(RasterLibrary.class);
52
	}
53
	
46
    @Override
47
    public void doRegistration() {
48
        registerAsServiceOf(DALLibrary.class);
49
        require(DALFileLibrary.class);
50
        require(RasterLibrary.class);
51
    }
52

  
54 53
	@Override
55 54
	protected void doInitialize() throws LibraryException {
56 55
	}
branches/v2_0_0_prep/libraries/libFMap_dalindex/src/org/gvsig/fmap/dal/index/spatial/jsi/JSIIndexLibrary.java
32 32
import org.gvsig.fmap.dal.DataTypes;
33 33
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
34 34
import org.gvsig.tools.library.AbstractLibrary;
35
import org.gvsig.tools.library.Library;
36 35
import org.gvsig.tools.library.LibraryException;
37 36

  
38 37
public class JSIIndexLibrary extends AbstractLibrary {
39 38

  
40
	public JSIIndexLibrary() {
41
        super(DALLibrary.class, Library.TYPE.SERVICE);
42
	}
39
    @Override
40
    public void doRegistration() {
41
        registerAsServiceOf(DALLibrary.class);
42
    }
43 43

  
44 44
	@Override
45 45
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_dalindex/src/org/gvsig/fmap/dal/index/spatial/spatialindex/SPTLIBIndexLibrary.java
32 32
import org.gvsig.fmap.dal.DataTypes;
33 33
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
34 34
import org.gvsig.tools.library.AbstractLibrary;
35
import org.gvsig.tools.library.Library;
36 35
import org.gvsig.tools.library.LibraryException;
37 36

  
38 37
public class SPTLIBIndexLibrary extends AbstractLibrary {
39 38

  
40
	public SPTLIBIndexLibrary() {
41
        super(DALLibrary.class, Library.TYPE.SERVICE);
42
	}
39
    @Override
40
    public void doRegistration() {
41
        registerAsServiceOf(DALLibrary.class);
42
    }
43 43

  
44 44
	@Override
45 45
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_dalindex/src/org/gvsig/fmap/dal/index/spatial/gt2/Gt2IndexLibrary.java
33 33
import org.gvsig.fmap.dal.DataTypes;
34 34
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
35 35
import org.gvsig.tools.library.AbstractLibrary;
36
import org.gvsig.tools.library.Library;
37 36
import org.gvsig.tools.library.LibraryException;
38 37

  
39 38
public class Gt2IndexLibrary extends AbstractLibrary {
40 39

  
41
	public Gt2IndexLibrary() {
42
        super(DALLibrary.class, Library.TYPE.SERVICE);
43
	}
40
    @Override
41
    public void doRegistration() {
42
        registerAsServiceOf(DALLibrary.class);
43
    }
44 44

  
45 45
	@Override
46 46
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_dalindex/src/org/gvsig/fmap/dal/index/spatial/jts/JTSIndexLibrary.java
32 32
import org.gvsig.fmap.dal.DataTypes;
33 33
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
34 34
import org.gvsig.tools.library.AbstractLibrary;
35
import org.gvsig.tools.library.Library;
36 35
import org.gvsig.tools.library.LibraryException;
37 36

  
38 37
public class JTSIndexLibrary extends AbstractLibrary {
39 38

  
40
	public JTSIndexLibrary() {
41
        super(DALLibrary.class, Library.TYPE.SERVICE);
42
	}
43
	
39
    @Override
40
    public void doRegistration() {
41
        registerAsServiceOf(DALLibrary.class);
42
    }
43

  
44 44
	protected void doInitialize() throws LibraryException {
45 45
	}
46 46

  
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/impl/DALDefaultImplLibrary.java
44 44
import org.gvsig.tools.dynobject.DynClass;
45 45
import org.gvsig.tools.dynobject.DynObjectManager;
46 46
import org.gvsig.tools.library.AbstractLibrary;
47
import org.gvsig.tools.library.Library;
48 47
import org.gvsig.tools.library.LibraryException;
49 48

  
50 49
/**
......
56 55
 */
57 56
public class DALDefaultImplLibrary extends AbstractLibrary {
58 57

  
59
    public DALDefaultImplLibrary() {
60
        super(DALLibrary.class, Library.TYPE.IMPL);
58
    public void doRegistration() {
59
        registerAsImplementationOf(DALLibrary.class);
61 60
    }
62 61

  
63 62
    protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DALLibrary.java
42 42
import org.gvsig.metadata.exceptions.MetadataException;
43 43
import org.gvsig.tools.ToolsLibrary;
44 44
import org.gvsig.tools.library.AbstractLibrary;
45
import org.gvsig.tools.library.Library;
46 45
import org.gvsig.tools.library.LibraryException;
47 46
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
48 47

  
......
53 52
 */
54 53
public class DALLibrary extends AbstractLibrary {
55 54

  
56
    public DALLibrary() {
57
        super(DALLibrary.class, Library.TYPE.API);
55
    public void doRegistration() {
56
        registerAsAPI(DALLibrary.class);
58 57
        require(GeometryLibrary.class);
59 58
        require(ToolsLibrary.class);
60 59
        require(MetadataLibrary.class);
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/store/memory/MemoryStoreLibrary.java
35 35
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
36 36
import org.gvsig.metadata.exceptions.MetadataException;
37 37
import org.gvsig.tools.library.AbstractLibrary;
38
import org.gvsig.tools.library.Library;
39 38
import org.gvsig.tools.library.LibraryException;
40 39

  
41 40

  
......
44 43
 */
45 44
public class MemoryStoreLibrary extends AbstractLibrary{
46 45

  
47
	public MemoryStoreLibrary() {
48
		super(MemoryStoreLibrary.class,Library.TYPE.IMPL);
49
		require(DALLibrary.class);
50
	}
51
	
46
    public void doRegistration() {
47
        registerAsServiceOf(DALLibrary.class);
48
    }
49

  
52 50
	public void doInitialize()  {
53 51
		
54 52
	}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/GeometryLibrary.java
34 34
import org.gvsig.tools.ToolsLocator;
35 35
import org.gvsig.tools.dataTypes.DataTypesManager;
36 36
import org.gvsig.tools.library.AbstractLibrary;
37
import org.gvsig.tools.library.Library;
38 37
import org.gvsig.tools.library.LibraryException;
39 38
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
40 39

  
......
45 44
 */
46 45
public class GeometryLibrary extends AbstractLibrary {
47 46

  
48
    public GeometryLibrary() {
49
        super(GeometryLibrary.class, Library.TYPE.API);
47
    @Override
48
    public void doRegistration() {
49
        registerAsAPI(GeometryLibrary.class);
50 50
        require(ToolsLibrary.class);
51 51
        require(ProjectionLibrary.class);
52 52
    }
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/impl/DefaultGeometryOperationLibrary.java
55 55
import org.gvsig.fmap.geom.operation.towkt.ToWKT;
56 56
import org.gvsig.fmap.geom.operation.utils.PointGetAngle;
57 57
import org.gvsig.tools.library.AbstractLibrary;
58
import org.gvsig.tools.library.Library;
59 58
import org.gvsig.tools.library.LibraryException;
60 59

  
61 60
/**
......
63 62
 */
64 63
public class DefaultGeometryOperationLibrary extends AbstractLibrary  {
65 64

  
66
	public DefaultGeometryOperationLibrary() {
67
		super(DefaultGeometryOperationLibrary.class, Library.TYPE.IMPL);
68
		require(GeometryLibrary.class);
69
	}
70
	
65
    @Override
66
    public void doRegistration() {
67
        registerAsServiceOf(GeometryLibrary.class);
68
    }
71 69

  
72 70
	protected void doInitialize() throws LibraryException {
73 71
	}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/impl/DefaultGeometryLibrary.java
68 68
import org.gvsig.tools.ToolsLocator;
69 69
import org.gvsig.tools.dataTypes.DataTypesManager;
70 70
import org.gvsig.tools.library.AbstractLibrary;
71
import org.gvsig.tools.library.Library;
72 71
import org.gvsig.tools.library.LibraryException;
73 72
import org.gvsig.tools.persistence.PersistenceManager;
74 73

  
......
79 78
 */
80 79
public class DefaultGeometryLibrary extends AbstractLibrary {
81 80

  
82
    public DefaultGeometryLibrary() {
83
        super(GeometryLibrary.class, Library.TYPE.IMPL);
81
    @Override
82
    public void doRegistration() {
83
        registerAsImplementationOf(GeometryLibrary.class);
84 84
    }
85 85

  
86 86
    protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/jdbc/JDBCLibrary.java
36 36
import org.gvsig.fmap.dal.store.db.DBStoreLibrary;
37 37
import org.gvsig.metadata.exceptions.MetadataException;
38 38
import org.gvsig.tools.library.AbstractLibrary;
39
import org.gvsig.tools.library.Library;
40 39
import org.gvsig.tools.library.LibraryException;
41 40

  
42 41
/**
......
47 46
 */
48 47
public class JDBCLibrary extends AbstractLibrary {
49 48

  
50
	public JDBCLibrary() {
51
        super(DALLibrary.class, Library.TYPE.SERVICE);
52
		require(DBStoreLibrary.class);
53
		require(DBResourceLibrary.class);
54
	}
49
    @Override
50
    public void doRegistration() {
51
        registerAsServiceOf(DALLibrary.class);
52
        require(DBStoreLibrary.class);
53
        require(DBResourceLibrary.class);
54
    }
55 55

  
56 56
	@Override
57 57
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/postgresql/PostgreSQLLibrary.java
35 35
import org.gvsig.fmap.dal.store.jdbc.JDBCLibrary;
36 36
import org.gvsig.metadata.exceptions.MetadataException;
37 37
import org.gvsig.tools.library.AbstractLibrary;
38
import org.gvsig.tools.library.Library;
39 38
import org.gvsig.tools.library.LibraryException;
40 39

  
41 40
public class PostgreSQLLibrary extends AbstractLibrary {
42 41

  
43 42
	static String DEFAULT_JDCB_DRIVER_NAME = "org.postgresql.Driver";
44 43

  
45
	public PostgreSQLLibrary() {
46
        super(DALLibrary.class, Library.TYPE.SERVICE);
47
		require(JDBCLibrary.class);
48
	}
44
    @Override
45
    public void doRegistration() {
46
        registerAsServiceOf(DALLibrary.class);
47
        require(JDBCLibrary.class);
48
    }
49 49

  
50 50
	public static String getJdbcUrl(String host, Integer port, String db) {
51 51
		String url = null;
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/db/DBStoreLibrary.java
31 31
import org.gvsig.fmap.dal.resource.db.DBResourceLibrary;
32 32
import org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorerParameters;
33 33
import org.gvsig.tools.library.AbstractLibrary;
34
import org.gvsig.tools.library.Library;
35 34
import org.gvsig.tools.library.LibraryException;
36 35

  
37 36
/**
......
41 40
 */
42 41
public class DBStoreLibrary extends AbstractLibrary {
43 42
	
44
	public DBStoreLibrary() {
45
        super(DALLibrary.class, Library.TYPE.SERVICE);
46
		require(DBResourceLibrary.class);
47
	}
43
    @Override
44
    public void doRegistration() {
45
        registerAsServiceOf(DALLibrary.class);
46
        require(DBResourceLibrary.class);
47
    }
48 48

  
49 49
	@Override
50 50
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/mysql/MySQLLibrary.java
35 35
import org.gvsig.fmap.dal.store.jdbc.JDBCLibrary;
36 36
import org.gvsig.metadata.exceptions.MetadataException;
37 37
import org.gvsig.tools.library.AbstractLibrary;
38
import org.gvsig.tools.library.Library;
39 38
import org.gvsig.tools.library.LibraryException;
40 39

  
41 40
public class MySQLLibrary extends AbstractLibrary {
42 41

  
43 42
	static String DEFAULT_JDCB_DRIVER_NAME = "com.mysql.jdbc.Driver";
44 43

  
45
	public MySQLLibrary() {
46
        super(DALLibrary.class, Library.TYPE.SERVICE);
47
		require(JDBCLibrary.class);
48
	}
44
    @Override
45
    public void doRegistration() {
46
        registerAsServiceOf(DALLibrary.class);
47
        require(JDBCLibrary.class);
48
    }
49 49

  
50 50
	public static String getJdbcUrl(String host, Integer port, String db) {
51 51
		String url;
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/resource/db/DBResourceLibrary.java
34 34
import org.gvsig.fmap.dal.DALLibrary;
35 35
import org.gvsig.fmap.dal.store.db.DBHelper;
36 36
import org.gvsig.tools.library.AbstractLibrary;
37
import org.gvsig.tools.library.Library;
38 37
import org.gvsig.tools.library.LibraryException;
39 38

  
40 39
/**
......
45 44
 */
46 45
public class DBResourceLibrary extends AbstractLibrary {
47 46

  
48
	public DBResourceLibrary() {
49
        super(DALLibrary.class, Library.TYPE.SERVICE);
50
		require(DALDbLibrary.class);
51
	}
47
    @Override
48
    public void doRegistration() {
49
        registerAsServiceOf(DALLibrary.class);
50
        require(DALDbLibrary.class);
51
    }
52 52

  
53 53
	@Override
54 54
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/DALDbLibrary.java
31 31
package org.gvsig.fmap.dal;
32 32

  
33 33
import org.gvsig.tools.library.AbstractLibrary;
34
import org.gvsig.tools.library.Library;
35 34
import org.gvsig.tools.library.LibraryException;
36 35

  
37 36
/**
......
42 41
 */
43 42
public class DALDbLibrary extends AbstractLibrary {
44 43

  
45
	public DALDbLibrary() {
46
        super(DALLibrary.class, Library.TYPE.SERVICE);
47
	}
44
    @Override
45
    public void doRegistration() {
46
        registerAsServiceOf(DALLibrary.class);
47
    }
48 48

  
49 49
	@Override
50 50
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/geom/operation/MapContextGeomOperationsLibrary.java
32 32

  
33 33
import org.gvsig.fmap.mapcontext.MapContextLibrary;
34 34
import org.gvsig.tools.library.AbstractLibrary;
35
import org.gvsig.tools.library.Library;
36 35
import org.gvsig.tools.library.LibraryException;
37 36

  
38 37
/**
......
41 40
 */
42 41
public class MapContextGeomOperationsLibrary extends AbstractLibrary {
43 42

  
44
	public MapContextGeomOperationsLibrary() {
45
		super(MapContextGeomOperationsLibrary.class, Library.TYPE.IMPL);
46
		require(MapContextLibrary.class);
47
	}
48
	
43
    public void doRegistration() {
44
        registerAsServiceOf(MapContextLibrary.class);
45
    }
46

  
49 47
	protected void doInitialize() throws LibraryException {
50 48
	}
51 49

  
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/MapContextLibrary.java
26 26
 */
27 27
package org.gvsig.fmap.mapcontext;
28 28

  
29
import org.slf4j.Logger;
30
import org.slf4j.LoggerFactory;
31

  
29 32
import org.gvsig.compat.CompatLibrary;
30 33
import org.gvsig.fmap.dal.DALLibrary;
31
import org.gvsig.fmap.dal.DataTypes;
32 34
import org.gvsig.fmap.dal.feature.FeatureStore;
33 35
import org.gvsig.fmap.mapcontext.impl.DefaultMapContextDrawer;
34
import org.gvsig.fmap.mapcontext.layers.FLayer;
35 36
import org.gvsig.fmap.mapcontext.layers.FLayerStatus;
36 37
import org.gvsig.fmap.mapcontext.layers.FLayers;
37 38
import org.gvsig.fmap.mapcontext.layers.FLyrDefault;
......
43 44
import org.gvsig.fmap.mapcontext.tools.persistence.FontPersistenceFactory;
44 45
import org.gvsig.fmap.mapcontext.tools.persistence.Point2DPersistenceFactory;
45 46
import org.gvsig.fmap.mapcontext.tools.persistence.Rectangle2DPersistenceFactory;
46
import org.gvsig.metadata.MetadataLocator;
47
import org.gvsig.metadata.exceptions.MetadataException;
48 47
import org.gvsig.tools.ToolsLocator;
49
import org.gvsig.tools.dynobject.DynStruct;
50 48
import org.gvsig.tools.library.AbstractLibrary;
51
import org.gvsig.tools.library.Library;
52 49
import org.gvsig.tools.library.LibraryException;
53 50
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
54 51
import org.gvsig.tools.persistence.PersistenceManager;
55 52
import org.gvsig.tools.util.Caller;
56 53
import org.gvsig.tools.util.impl.DefaultCaller;
57
import org.slf4j.Logger;
58
import org.slf4j.LoggerFactory;
59 54

  
60 55
/**
61 56
 * Library for the MapContext library API.
......
64 59
public class MapContextLibrary extends AbstractLibrary {
65 60
	final static private Logger LOG = LoggerFactory.getLogger(FLyrDefault.class);
66 61

  
67
	public MapContextLibrary() {
68
		super(MapContextLibrary.class, Library.TYPE.API);
69
		require(DALLibrary.class);
70
		require(CompatLibrary.class);
71
	}
72
	
62
    public void doRegistration() {
63
        registerAsAPI(MapContextLibrary.class);
64
        require(DALLibrary.class);
65
        require(CompatLibrary.class);
66
    }
67

  
73 68
	protected void doInitialize() throws LibraryException {
74 69
		LayerFactory.getInstance().registerLayerToUseForStore(
75 70
				FeatureStore.class, FLyrVect.class);
branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/impl/MapContextImplLibrary.java
30 30
import org.gvsig.fmap.mapcontext.MapContextLocator;
31 31
import org.gvsig.fmap.mapcontext.rendering.symbols.impl.DefaultSymbolManager;
32 32
import org.gvsig.tools.library.AbstractLibrary;
33
import org.gvsig.tools.library.Library;
34 33
import org.gvsig.tools.library.LibraryException;
35 34

  
36 35
/**
......
40 39
 */
41 40
public class MapContextImplLibrary extends AbstractLibrary {
42 41

  
43
	public MapContextImplLibrary() {
44
		super(MapContextLibrary.class,Library.TYPE.IMPL);
45
	}
46
	
42
    public void doRegistration() {
43
        registerAsImplementationOf(MapContextLibrary.class);
44
    }
45

  
47 46
	protected void doInitialize() throws LibraryException {
48 47
		MapContextLocator
49 48
				.registerMapContextManager(DefaultMapContextManager.class);
branches/v2_0_0_prep/libraries/libRaster_io/src/org/gvsig/fmap/dal/coverage/dataset/io/DefaultRasterIOLibrary.java
20 20

  
21 21
import org.gvsig.raster.RasterLibrary;
22 22
import org.gvsig.tools.library.AbstractLibrary;
23
import org.gvsig.tools.library.Library;
24 23
import org.gvsig.tools.library.LibraryException;
25 24
/**
26 25
 *
......
28 27
 */
29 28
public class DefaultRasterIOLibrary extends AbstractLibrary {	
30 29

  
31
	public DefaultRasterIOLibrary() {
32
		super(DefaultRasterIOLibrary.class,Library.TYPE.IMPL);
33
		require(RasterLibrary.class);
34
	}
35
	
30
    @Override
31
    public void doRegistration() {
32
        registerAsServiceOf(RasterLibrary.class);
33
    }
34

  
36 35
	@Override
37 36
	protected void doInitialize() throws LibraryException {
38 37
		RasterLibrary.wakeUp();
branches/v2_0_0_prep/libraries/libIverUtiles/src/org/gvsig/tools/IverUtilesLibrary.java
5 5

  
6 6
public class IverUtilesLibrary extends AbstractLibrary {
7 7

  
8
	public IverUtilesLibrary() {
9
		super(IverUtilesLibrary.class, TYPE.API);
10
	}
8
    @Override
9
    public void doRegistration() {
10
        registerAsAPI(IverUtilesLibrary.class);
11
    }
11 12

  
12 13
	@Override
13 14
	protected void doInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libRaster/src/org/gvsig/raster/RasterLibrary.java
53 53
import org.gvsig.tools.ToolsLocator;
54 54
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
55 55
import org.gvsig.tools.library.AbstractLibrary;
56
import org.gvsig.tools.library.Library;
57 56
import org.gvsig.tools.library.LibraryException;
58 57
/**
59 58
 * Clase principal de la libreria. En ella se definen variables globales con informaci?n
......
66 65
 */
67 66
public class RasterLibrary extends AbstractLibrary{
68 67
	
69
	public RasterLibrary() {
70
		super(RasterLibrary.class, Library.TYPE.IMPL);
71
	}
72
	
68
    @Override
69
    public void doRegistration() {
70
        registerAsAPI(RasterLibrary.class);
71
    }
72

  
73 73
	/**
74 74
	 * Control de librer?a ya inicializada.
75 75
	 */
branches/v2_0_0_prep/libraries/libJCRS/src/org/gvsig/crs/JCRSLibrary.java
35 35
 */
36 36
public class JCRSLibrary extends AbstractLibrary {
37 37
    
38
    public JCRSLibrary(){
39
        super(ProjectionLibrary.class, 10);
38
    @Override
39
    public void doRegistration() {
40
        registerAsImplementationOf(ProjectionLibrary.class, 10);
40 41
    }
41
    
42

  
42 43
    @Override
43 44
    protected void doInitialize() throws LibraryException {
44 45
        CRSFactory.cp = new CrsFactory();
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/shp/SHPLibrary.java
39 39
import org.gvsig.fmap.dal.store.dbf.DBFLibrary;
40 40
import org.gvsig.metadata.exceptions.MetadataException;
41 41
import org.gvsig.tools.library.AbstractLibrary;
42
import org.gvsig.tools.library.Library;
43 42
import org.gvsig.tools.library.LibraryException;
44 43

  
45 44
public class SHPLibrary extends AbstractLibrary {
46 45

  
47
	public SHPLibrary() {
48
        super(DALLibrary.class, Library.TYPE.SERVICE);
49
		require(DALFileLibrary.class);
50
		require(DBFLibrary.class);
51
	}
46
    @Override
47
    public void doRegistration() {
48
        registerAsServiceOf(DALLibrary.class);
49
        require(DALFileLibrary.class);
50
        require(DBFLibrary.class);
51
    }
52 52

  
53 53
	@Override
54 54
	protected void doPostInitialize() throws LibraryException {
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dbf/DBFLibrary.java
47 47
import org.gvsig.tools.dynobject.DynObjectValueItem;
48 48
import org.gvsig.tools.dynobject.DynStruct;
49 49
import org.gvsig.tools.library.AbstractLibrary;
50
import org.gvsig.tools.library.Library;
51 50
import org.gvsig.tools.library.LibraryException;
52 51

  
53 52
public class DBFLibrary extends AbstractLibrary {
54 53

  
55
	public DBFLibrary() {
56
        super(DALLibrary.class, Library.TYPE.SERVICE);
57
		require(DALFileLibrary.class);
58
	}
59
	
54
    @Override
55
    public void doRegistration() {
56
        registerAsServiceOf(DALLibrary.class);
57
        require(DALFileLibrary.class);
58
    }
59

  
60 60
	@Override
61 61
	protected void doInitialize() throws LibraryException {
62 62
	}
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dxf/legend/DXFLegendLibrary.java
37 37
import org.gvsig.metadata.MetadataLocator;
38 38
import org.gvsig.tools.dynobject.DynClass;
39 39
import org.gvsig.tools.library.AbstractLibrary;
40
import org.gvsig.tools.library.Library;
41 40
import org.gvsig.tools.library.LibraryException;
42 41

  
43 42
/**
......
46 45
 */
47 46
public class DXFLegendLibrary extends AbstractLibrary {
48 47

  
49
	public DXFLegendLibrary() {
50
		super(DXFLegendLibrary.class, Library.TYPE.IMPL);
51
		require(DXFLibrary.class);
52
		require(MetadataLibrary.class);
53
		require(DALLibrary.class);
54
	}
55
		
48
    @Override
49
    public void doRegistration() {
50
        registerAsServiceOf(DALLibrary.class);
51
        require(DXFLibrary.class);
52
        require(MetadataLibrary.class);
53
        require(DALLibrary.class);
54
    }
55

  
56 56
	@Override
57 57
	protected void doInitialize() throws LibraryException {
58 58
	}
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dxf/DXFLibrary.java
38 38
import org.gvsig.fmap.dal.spi.DataManagerProviderServices;
39 39
import org.gvsig.metadata.exceptions.MetadataException;
40 40
import org.gvsig.tools.library.AbstractLibrary;
41
import org.gvsig.tools.library.Library;
42 41
import org.gvsig.tools.library.LibraryException;
43 42

  
44 43
public class DXFLibrary extends AbstractLibrary {
45 44

  
46
	public DXFLibrary() {
47
        super(DALLibrary.class, Library.TYPE.SERVICE);
48
		require(DALFileLibrary.class);
49
	}
50
	
45
    @Override
46
    public void doRegistration() {
47
        registerAsServiceOf(DALLibrary.class);
48
        require(DALFileLibrary.class);
49
    }
50

  
51 51
	@Override
52 52
	protected void doInitialize() throws LibraryException {
53 53
	}
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dgn/DGNLibrary.java
39 39
import org.gvsig.metadata.MetadataLibrary;
40 40
import org.gvsig.metadata.exceptions.MetadataException;
41 41
import org.gvsig.tools.library.AbstractLibrary;
42
import org.gvsig.tools.library.Library;
43 42
import org.gvsig.tools.library.LibraryException;
44 43

  
45 44
public class DGNLibrary extends AbstractLibrary {
46 45

  
47
	public DGNLibrary() {
48
        super(DALLibrary.class, Library.TYPE.SERVICE);
49
		require(DALFileLibrary.class);
50
		require(MetadataLibrary.class);
51
	}
52
	
46
    @Override
47
    public void doRegistration() {
48
        registerAsServiceOf(DALLibrary.class);
49
        require(DALFileLibrary.class);
50
        require(MetadataLibrary.class);
51
    }
52

  
53 53
	@Override
54 54
	protected void doInitialize() throws LibraryException {
55 55
	}
branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dgn/legend/DGNLegendLibrary.java
37 37
import org.gvsig.metadata.MetadataLocator;
38 38
import org.gvsig.tools.dynobject.DynClass;
39 39
import org.gvsig.tools.library.AbstractLibrary;
40
import org.gvsig.tools.library.Library;
41 40
import org.gvsig.tools.library.LibraryException;
42 41

  
43 42
/**
......
46 45
 */
47 46
public class DGNLegendLibrary extends AbstractLibrary {
48 47

  
49
	public DGNLegendLibrary() {
50
		super(DGNLegendLibrary.class, Library.TYPE.IMPL);
51
		require(DGNLibrary.class);
52
		require(MetadataLibrary.class);
53
		require(DALLibrary.class);
54
	}
55
	
48
    @Override
49
    public void doRegistration() {
50
        registerAsServiceOf(DALLibrary.class);
51
        require(DGNLibrary.class);
52
        require(MetadataLibrary.class);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff