2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.model
.common
.init
;
14 * Terms, vocabularies, and representations loaded during termloading by class TermLoader added
15 * by the user maybe stored and accessed through this interface.
16 * Care must be taken as TermLoader indirectly calls getTermByUuid(uuid) for the default
17 * language uuid during the loading process. So make sure that initialize() and getTermByUuid(uuid)
18 * are not implemeted in an endless recursion!
23 public interface ITermInitializer
{
25 /** Initializes the IVocabularStore by making sure that all basic terms that are
26 * loaded by the TermLoader are available afterwards.
27 * ATTENTION: Be aware that TermLoader indirectly calls getTermByUuid(uuid)
28 * for the default language. So make sure that before loading the Terms by the
29 * TermLoader getTermByUuid() returns a valid Object without going to endless recursion.
30 * @return true if terms where successfully loaded
32 public void initialize();