svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / temp / org.gvsig.sldsupport.lib.impl / src / main / java / org / gvsig / sldsupport / impl / SLDSupportDefaultLibrary.java @ 40799
History | View | Annotate | Download (901 Bytes)
1 |
package org.gvsig.sldsupport.impl; |
---|---|
2 |
|
3 |
import org.gvsig.sldsupport.SLDSupportLibrary; |
4 |
import org.gvsig.sldsupport.SLDSupportLocator; |
5 |
import org.gvsig.sldsupport.SLDSupportManager; |
6 |
import org.gvsig.sldsupport.impl.reader.DefaultSLDReaderFactory; |
7 |
import org.gvsig.tools.library.AbstractLibrary; |
8 |
import org.gvsig.tools.library.LibraryException; |
9 |
|
10 |
public class SLDSupportDefaultLibrary extends AbstractLibrary { |
11 |
|
12 |
public void doRegistration() { |
13 |
registerAsImplementationOf(SLDSupportLibrary.class); |
14 |
} |
15 |
|
16 |
protected void doInitialize() throws LibraryException { |
17 |
|
18 |
SLDSupportLocator.getInstance().registerSLDSupportManager( |
19 |
DefaultSLDSupportManager.class); |
20 |
} |
21 |
|
22 |
protected void doPostInitialize() throws LibraryException { |
23 |
SLDSupportManager man = SLDSupportLocator.getInstance().getSLDSupportManager(); |
24 |
man.registerReader(new DefaultSLDReaderFactory());
|
25 |
} |
26 |
} |