svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / using-sld-model / org.gvsig.sldsupport / org.gvsig.sldsupport.lib / org.gvsig.sldsupport.lib.api / src / main / java / org / gvsig / sldsupport / SLDSupportLibrary.java @ 40758
History | View | Annotate | Download (856 Bytes)
1 |
package org.gvsig.sldsupport; |
---|---|
2 |
|
3 |
import org.gvsig.tools.library.AbstractLibrary; |
4 |
import org.gvsig.tools.library.LibraryException; |
5 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
6 |
|
7 |
public class SLDSupportLibrary extends AbstractLibrary { |
8 |
|
9 |
public void doRegistration() { |
10 |
registerAsAPI(SLDSupportLibrary.class); |
11 |
// require(MapContextLibrary.class);
|
12 |
} |
13 |
|
14 |
protected void doInitialize() throws LibraryException { |
15 |
} |
16 |
|
17 |
protected void doPostInitialize() throws LibraryException { |
18 |
|
19 |
// Check that there is a SLD support manager
|
20 |
SLDSupportManager mana = null;
|
21 |
mana = SLDSupportLocator.getInstance().getSLDSupportManager(); |
22 |
if (mana == null) { |
23 |
throw new ReferenceNotRegisteredException( |
24 |
SLDSupportLocator.SLD_SUPPORT_MANAGER_NAME, |
25 |
SLDSupportLocator.getInstance()); |
26 |
} |
27 |
|
28 |
} |
29 |
|
30 |
} |