Statistics
| Revision:

gvsig-3d / 2.1 / trunk / org.gvsig.gvsig3d / org.gvsig.gvsig3d.lib / org.gvsig.gvsig3d.lib.api / src / main / java / org / gvsig / gvsig3d / Gvsig3DLibrary.java @ 385

History | View | Annotate | Download (2.01 KB)

1
/* gvSIG 3D extension for gvSIG
2
 *
3
 * Copyright (C) 2012 Prodevelop.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *   Prodevelop, S.L.
22
 *   Pza. Don Juan de Villarrasa, 14 - 5
23
 *   46001 Valencia
24
 *   Spain
25
 *
26
 *   +34 963 510 612
27
 *   +34 963 510 968
28
 *   prode@prodevelop.es
29
 *   http://www.prodevelop.es
30
 */
31
/*
32
 * AUTHORS:
33
 * 2012 AI2 - Instituto Universitario de Automatica e Informatica Industrial.
34
 * Universitat Politecnica de Valencia (UPV)
35
 * http://www.ai2.upv.es
36
 */
37

    
38

    
39
package org.gvsig.gvsig3d;
40

    
41
import org.gvsig.tools.library.AbstractLibrary;
42
import org.gvsig.tools.library.LibraryException;
43
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
44

    
45
/**
46
 * Library for API initialization and configuration.
47
 * 
48
 * @author gvSIG team & AI2
49
 * @version $Id$
50
 */
51
public class Gvsig3DLibrary extends AbstractLibrary {
52

    
53
    @Override
54
    protected void doInitialize() throws LibraryException {
55
        // Do nothing
56
    }
57

    
58
    @Override
59
    protected void doPostInitialize() throws LibraryException {
60
        // Validate there is any implementation registered.
61
        Gvsig3DManager manager = Gvsig3DLocator.getManager();
62
        if (manager == null) {
63
            throw new ReferenceNotRegisteredException(
64
                Gvsig3DLocator.MANAGER_NAME, Gvsig3DLocator
65
                    .getInstance());
66
        }
67

    
68
    }
69

    
70
}