Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / raster / lib / legend / api / RasterLegendLibrary.java @ 43803

History | View | Annotate | Download (1004 Bytes)

1
package org.gvsig.raster.lib.legend.api;
2

    
3
import org.gvsig.tools.library.AbstractLibrary;
4
import org.gvsig.tools.library.LibraryException;
5
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
6

    
7
/**
8
 * Raster legend library
9
 *
10
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
11
 *
12
 */
13
@Deprecated
14
public class RasterLegendLibrary extends AbstractLibrary {
15

    
16
    public void doRegistration() {
17
        registerAsAPI(RasterLegendLibrary.class);
18
    }
19

    
20
    @Override
21
    protected void doInitialize() throws LibraryException {
22
        // Do nothing
23
    }
24

    
25
    @Override
26
    protected void doPostInitialize() throws LibraryException {
27
        // Validate there is any implementation registered.
28
        if (!RasterLegendLocator.getInstance().exists(
29
            RasterLegendLocator.RASTER_LEGEND_MANAGER_NAME)) {
30
            throw new ReferenceNotRegisteredException(
31
                RasterLegendLocator.RASTER_LEGEND_MANAGER_NAME, RasterLegendLocator.getInstance());
32
        }
33
    }
34
}