eu.etaxonomy.cdm.model.common
Class DefaultTermInitializer

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.DefaultTermInitializer
All Implemented Interfaces:
ITermInitializer
Direct Known Subclasses:
PersistentTermInitializer

public class DefaultTermInitializer
extends Object
implements ITermInitializer

Author:
a.mueller

Field Summary
protected  ITermLoader termLoader
           
 
Constructor Summary
DefaultTermInitializer()
           
 
Method Summary
protected  void doInitialize()
           
 void initialize()
          Initializes the IVocabularStore by making sure that all basic terms that are loaded by the TermLoader are available afterwards.
protected  void setDefinedTerms(Class<? extends DefinedTermBase<?>> clazz, TermVocabulary<?> vocabulary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

termLoader

protected ITermLoader termLoader
Constructor Detail

DefaultTermInitializer

public DefaultTermInitializer()
Method Detail

initialize

public void initialize()
Description copied from interface: ITermInitializer
Initializes the IVocabularStore by making sure that all basic terms that are loaded by the TermLoader are available afterwards. ATTENTION: Be aware that TermLoader indirectly calls getTermByUuid(uuid) for the default language. So make sure that before loading the Terms by the TermLoader getTermByUuid() returns a valid Object without going to endless recursion.

Specified by:
initialize in interface ITermInitializer

doInitialize

protected void doInitialize()

setDefinedTerms

protected void setDefinedTerms(Class<? extends DefinedTermBase<?>> clazz,
                               TermVocabulary<?> vocabulary)


Copyright © 2007-2013 EDIT. All Rights Reserved.