Revision 35197 branches/dal_time_support/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/MapContextLibrary.java
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); |
Also available in: Unified diff