org.kuali.rice.krad.datadictionary
Class ReloadingDataDictionary
java.lang.Object
   org.kuali.rice.krad.datadictionary.DataDictionary
org.kuali.rice.krad.datadictionary.DataDictionary
       org.kuali.rice.krad.datadictionary.ReloadingDataDictionary
org.kuali.rice.krad.datadictionary.ReloadingDataDictionary
- All Implemented Interfaces: 
- no.geosoft.cc.io.FileListener, URLMonitor.URLContentChangedListener
- public class ReloadingDataDictionary 
- extends DataDictionary- implements no.geosoft.cc.io.FileListener, URLMonitor.URLContentChangedListener
Extends the DataDictionary to add reloading of changed dictionary files
 without a restart of the web container
 
 
 To use modify the "dataDictionaryService" spring definition
 (KRADSpringBeans.xml) and change the constructor arg bean class from
 "org.kuali.rice.krad.datadictionary.DataDictionary" to
 "ReloadingDataDictionary"
 
 
 
 NOTE: For Development Purposes Only!
 
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
 
 
 
| Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionary | 
| addConfigFileLocation, buildReadDescriptor, buildSimpleReadDescriptor, containsDictionaryObject, getAllInactivationBlockingMetadatas, getAttributeClass, getBusinessObjectClassNames, getBusinessObjectEntries, getBusinessObjectEntry, getBusinessObjectEntryForConcreteClass, getCollectionElementClass, getConfigFileLocations, getDataObjectEntry, getDictionaryObject, getDictionaryObjectEntry, getDocumentEntries, getDocumentEntry, getFileResource, getMaintenanceDocumentEntryForBusinessObjectClass, getPersistenceStructureService, getViewById, getViewByTypeIndex, getViewPropertiesById, getViewPropertiesByType, getViewsForType, isCollectionPropertyOf, isPropertyOf, performBeanOverrides, setConfigFileLocations, setDataDictionaryMapper, validateDD, validateDD, viewByTypeExist | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ReloadingDataDictionary
public ReloadingDataDictionary()
parseDataDictionaryConfigurationFiles
public void parseDataDictionaryConfigurationFiles(boolean allowConcurrentValidation)
- After dictionary has been loaded, determine the source files and add them
 to the monitor
 
- 
- Overrides:
- parseDataDictionaryConfigurationFilesin class- DataDictionary
 
- 
- See Also:
- DataDictionary.parseDataDictionaryConfigurationFiles(boolean)
 
fileChanged
public void fileChanged(File file)
- Call back when a dictionary file is changed. Calls the spring bean reader
 to reload the file (which will override beans as necessary and destroy
 singletons) and runs the indexer
 
- 
- Specified by:
- fileChangedin interface- no.geosoft.cc.io.FileListener
 
- 
- See Also:
- FileListener.fileChanged(java.io.File)
 
urlContentChanged
public void urlContentChanged(URL url)
- 
- Specified by:
- urlContentChangedin interface- URLMonitor.URLContentChangedListener
 
- 
 
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.