Revision 42309 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/GeometryLibrary.java
GeometryLibrary.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
/** |
38 | 38 |
* Registers the default implementation for {@link GeometryManager}. |
39 |
*
|
|
39 |
* |
|
40 | 40 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
41 | 41 |
*/ |
42 | 42 |
public class GeometryLibrary extends AbstractLibrary { |
... | ... | |
48 | 48 |
} |
49 | 49 |
|
50 | 50 |
protected void doInitialize() throws LibraryException { |
51 |
} |
|
52 |
|
|
53 |
protected void doPostInitialize() throws LibraryException { |
|
54 | 51 |
// Validate there is any implementation registered. |
55 | 52 |
if(! GeometryLocator.getInstance().exists(GeometryLocator.GEOMETRY_MANAGER_NAME)) { |
56 | 53 |
throw new ReferenceNotRegisteredException( |
57 | 54 |
GeometryLocator.GEOMETRY_MANAGER_NAME, |
58 | 55 |
GeometryLocator.getInstance()); |
59 | 56 |
} |
57 |
} |
|
58 |
|
|
59 |
protected void doPostInitialize() throws LibraryException { |
|
60 | 60 |
DataTypesManager dataTypesManager = ToolsLocator.getDataTypesManager(); |
61 | 61 |
dataTypesManager.addtype(DataTypes.GEOMETRY, "Geometry", "Geometry", |
62 | 62 |
Geometry.class, null); |
Also available in: Unified diff