eu.etaxonomy.cdm.persistence.dao
Class AutoPropertyInitializer<T extends CdmBase>
java.lang.Object
eu.etaxonomy.cdm.persistence.dao.AutoPropertyInitializer<T>
- Direct Known Subclasses:
- AnnotationTypeAutoInitializer, GatheringEventLocationAutoInitializer, MarkerTypeAutoInitializer, MediaAutoInitializer, TermBaseAutoInitializer, TitleCacheAutoInitializer, TypeDesignationAutoInitializer
public abstract class AutoPropertyInitializer<T extends CdmBase>
- extends Object
- Author:
- a.kohlbecker
Method Summary |
abstract void |
initialize(T bean)
Implement this method to initialize associated entities of the supplied beans. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanInitializer
@Autowired
protected IBeanInitializer beanInitializer
AutoPropertyInitializer
public AutoPropertyInitializer()
initialize
public abstract void initialize(T bean)
- Implement this method to initialize associated entities of the supplied beans.
For initializing collections of cdm entity bean it is recommended to
use IBeanInitializer.initializeInstance(Object)
.
WARNING: You must NOT use IBeanInitializer.initialize(Object, java.util.List)
or IBeanInitializer#initializeAll(java.util.List, java.util.List)
otherwise you risk
to get StackOverflowExceptions.
- Parameters:
bean
- the cdm entity bean to process
Copyright © 2007-2013 EDIT. All Rights Reserved.