svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.prov / org.gvsig.exportto.swing.prov.csv / src / main / java / org / gvsig / export / csv / ExportCSVLibrary.java @ 44411
History | View | Annotate | Download (1.35 KB)
1 |
package org.gvsig.export.csv; |
---|---|
2 |
|
3 |
import org.gvsig.export.csv.service.ExportCSVServiceFactory; |
4 |
import org.gvsig.export.csv.swing.ExportCSVPanelsFactory; |
5 |
import org.gvsig.export.ExportLibrary; |
6 |
import org.gvsig.export.ExportLocator; |
7 |
import org.gvsig.export.csv.service.ExportCSVParametersImpl; |
8 |
import org.gvsig.export.spi.ExportServiceManager; |
9 |
import org.gvsig.export.swing.ExportSwingLibrary; |
10 |
import org.gvsig.export.swing.ExportSwingLocator; |
11 |
import org.gvsig.export.swing.spi.ExportPanelsManager; |
12 |
import org.gvsig.tools.library.AbstractLibrary; |
13 |
import org.gvsig.tools.library.LibraryException; |
14 |
|
15 |
|
16 |
/**
|
17 |
*
|
18 |
* @author jjdelcerro
|
19 |
*/
|
20 |
public class ExportCSVLibrary extends AbstractLibrary { |
21 |
|
22 |
@Override
|
23 |
public void doRegistration() { |
24 |
registerAsServiceOf(ExportSwingLibrary.class); |
25 |
registerAsServiceOf(ExportLibrary.class); |
26 |
} |
27 |
|
28 |
@Override
|
29 |
protected void doInitialize() throws LibraryException { |
30 |
// Nothing to do
|
31 |
} |
32 |
|
33 |
@Override
|
34 |
protected void doPostInitialize() throws LibraryException { |
35 |
ExportServiceManager manager = ExportLocator.getServiceManager(); |
36 |
ExportPanelsManager swingManager = ExportSwingLocator.getExportPanelsManager(); |
37 |
|
38 |
manager.register(new ExportCSVServiceFactory());
|
39 |
swingManager.register(new ExportCSVPanelsFactory());
|
40 |
ExportCSVParametersImpl.registerPersistence(); |
41 |
} |
42 |
|
43 |
} |