svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / using-sld-model / org.gvsig.sldsupport / org.gvsig.sldsupport.basic / src / main / java / org / gvsig / sldsupport / basic / BasicSLDReaderWriterLibrary.java @ 40758
History | View | Annotate | Download (906 Bytes)
1 |
package org.gvsig.sldsupport.basic; |
---|---|
2 |
|
3 |
import org.gvsig.sldsupport.SLDSupportLibrary; |
4 |
import org.gvsig.sldsupport.SLDSupportLocator; |
5 |
import org.gvsig.sldsupport.SLDSupportManager; |
6 |
import org.gvsig.sldsupport.basic.sld1_0_0.BasicSLDReaderWriter; |
7 |
import org.gvsig.tools.library.AbstractLibrary; |
8 |
import org.gvsig.tools.library.LibraryException; |
9 |
|
10 |
public class BasicSLDReaderWriterLibrary extends AbstractLibrary { |
11 |
|
12 |
public void doRegistration() { |
13 |
require(SLDSupportLibrary.class); |
14 |
} |
15 |
|
16 |
protected void doInitialize() throws LibraryException { |
17 |
|
18 |
|
19 |
} |
20 |
|
21 |
protected void doPostInitialize() throws LibraryException { |
22 |
|
23 |
SLDSupportManager man = null;
|
24 |
man = SLDSupportLocator.getInstance().getSLDSupportManager(); |
25 |
|
26 |
BasicSLDReaderWriter basic_1_0_0 = new BasicSLDReaderWriter();
|
27 |
man.registerLegendReader(basic_1_0_0); |
28 |
man.registerLegendWriter(basic_1_0_0); |
29 |
} |
30 |
} |