Revision 30580 branches/v2_0_0_prep/libraries/libMetadata/src/org/gvsig/metadata/MDLibrary.java
MDLibrary.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.gvsig.metadata.MDLocator; |
34 | 34 |
import org.gvsig.metadata.MDManager; |
35 |
import org.gvsig.tools.locator.BaseLibrary; |
|
35 |
import org.gvsig.tools.library.LibraryException; |
|
36 |
import org.gvsig.tools.library.impl.BaseLibrary; |
|
36 | 37 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
37 | 38 |
|
38 | 39 |
public class MDLibrary extends BaseLibrary { |
39 | 40 |
|
40 |
public void postInitialize() {
|
|
41 |
super.postInitialize();
|
|
41 |
protected void doInitialize() throws LibraryException {
|
|
42 |
}
|
|
42 | 43 |
|
43 |
// Validate there is any implementation registered. |
|
44 |
MDManager manager = MDLocator.getMDManager(); |
|
45 |
|
|
46 |
if (manager == null) { |
|
47 |
throw new ReferenceNotRegisteredException( |
|
48 |
MDLocator.METADATA_MANAGER_NAME, MDLocator.getInstance()); |
|
49 |
} |
|
50 |
} |
|
44 |
protected void doPostInitialize() throws LibraryException { |
|
45 |
// Validate there is any implementation registered. |
|
46 |
MDManager manager = MDLocator.getMDManager(); |
|
47 |
|
|
48 |
if (manager == null) { |
|
49 |
throw new ReferenceNotRegisteredException( |
|
50 |
MDLocator.METADATA_MANAGER_NAME, MDLocator.getInstance()); |
|
51 |
} |
|
52 |
} |
|
51 | 53 |
|
52 |
}
|
|
54 |
} |
Also available in: Unified diff