gvsig-sldtools / org.gvsig.sld / org.gvsig.sldsupport / org.gvsig.sldsupport.lib / org.gvsig.sldsupport.lib.impl / src / main / java / org / gvsig / sldsupport / impl / SLDSupportDefaultLibrary.java @ 46
History | View | Annotate | Download (2.4 KB)
1 |
/*******************************************************************************
|
---|---|
2 |
*
|
3 |
* gvSIG. Desktop Geographic Information System.
|
4 |
*
|
5 |
* Copyright (C) 2007-2013 gvSIG Association.
|
6 |
*
|
7 |
* This program is free software; you can redistribute it and/or
|
8 |
* modify it under the terms of the GNU General Public License
|
9 |
* as published by the Free Software Foundation; either version 3
|
10 |
* of the License, or (at your option) any later version.
|
11 |
*
|
12 |
* This program is distributed in the hope that it will be useful,
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
* GNU General Public License for more details.
|
16 |
*
|
17 |
* You should have received a copy of the GNU General Public License
|
18 |
* along with this program; if not, write to the Free Software
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20 |
* MA 02110-1301, USA.
|
21 |
*
|
22 |
* For any additional information, do not hesitate to contact us
|
23 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
24 |
*
|
25 |
*******************************************************************************/
|
26 |
package org.gvsig.sldsupport.impl; |
27 |
|
28 |
import org.gvsig.sldsupport.SLDSupportLibrary; |
29 |
import org.gvsig.sldsupport.SLDSupportLocator; |
30 |
import org.gvsig.sldsupport.SLDSupportManager; |
31 |
import org.gvsig.sldsupport.impl.reader.DefaultSLDReaderFactory; |
32 |
import org.gvsig.sldsupport.impl.writer.DefaultSLDWriterFactory; |
33 |
import org.gvsig.tools.library.AbstractLibrary; |
34 |
import org.gvsig.tools.library.LibraryException; |
35 |
|
36 |
public class SLDSupportDefaultLibrary extends AbstractLibrary { |
37 |
|
38 |
@Override
|
39 |
public void doRegistration() { |
40 |
registerAsImplementationOf(SLDSupportLibrary.class); |
41 |
} |
42 |
|
43 |
@Override
|
44 |
protected void doInitialize() throws LibraryException { |
45 |
|
46 |
SLDSupportLocator.getInstance().registerSLDSupportManager( |
47 |
DefaultSLDSupportManager.class); |
48 |
} |
49 |
|
50 |
@Override
|
51 |
protected void doPostInitialize() throws LibraryException { |
52 |
SLDSupportManager man = |
53 |
SLDSupportLocator.getInstance().getSLDSupportManager(); |
54 |
|
55 |
man.registerReader(new DefaultSLDReaderFactory("1.0.0")); |
56 |
man.registerReader(new DefaultSLDReaderFactory("1.1.0")); |
57 |
|
58 |
man.registerWriter(new DefaultSLDWriterFactory("1.0.0")); |
59 |
man.registerWriter(new DefaultSLDWriterFactory("1.1.0")); |
60 |
} |
61 |
} |