Revision 30580 branches/v2_0_0_prep/applications/appGazetteer/src/org/gvsig/gazetteer/GazetteerLibrary.java
GazetteerLibrary.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.gazetteer; |
29 | 29 |
|
30 |
import org.gvsig.tools.locator.BaseLibrary; |
|
30 |
import org.gvsig.tools.library.LibraryException; |
|
31 |
import org.gvsig.tools.library.impl.BaseLibrary; |
|
31 | 32 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
32 | 33 |
|
33 | 34 |
/** |
... | ... | |
35 | 36 |
*/ |
36 | 37 |
public class GazetteerLibrary extends BaseLibrary { |
37 | 38 |
|
38 |
/* |
|
39 |
* (non-Javadoc) |
|
40 |
* @see org.gvsig.tools.locator.BaseLibrary#initialize() |
|
41 |
*/ |
|
42 |
public void initialize() throws ReferenceNotRegisteredException { |
|
43 |
super.initialize(); |
|
44 |
} |
|
39 |
@Override |
|
40 |
protected void doInitialize() throws LibraryException { |
|
41 |
} |
|
45 | 42 |
|
46 |
/* |
|
47 |
* (non-Javadoc) |
|
48 |
* @see org.gvsig.tools.locator.BaseLibrary#postInitialize() |
|
49 |
*/ |
|
50 |
public void postInitialize() { |
|
51 |
super.postInitialize(); |
|
43 |
@Override |
|
44 |
protected void doPostInitialize() throws LibraryException { |
|
45 |
// Validate there is any implementation registered of CatalogManager. |
|
46 |
GazetteerManager gazetteerManager = GazetteerLocator.getGazetteerManager(); |
|
47 |
if (gazetteerManager == null) { |
|
48 |
throw new ReferenceNotRegisteredException( |
|
49 |
GazetteerLocator.GAZETTEER_MANAGER_NAME, |
|
50 |
GazetteerLocator.getInstance()); |
|
51 |
} |
|
52 | 52 |
} |
53 |
} |
|
53 |
} |
Also available in: Unified diff