Issue Details (XML | Word | Printable)

Key: NUCCORE-629
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

MetaData listener notification process should only trigger after each batch of initialisations

Created: 17/Jan/11 06:11 PM   Updated: 23/Jan/11 11:57 AM   Resolved: 18/Jan/11 10:30 AM
Component/s: MetaData
Affects Version/s: None
Fix Version/s: 3.0.0.m1


 Description  « Hide
We currently allow a metadata listener to be notified when metadata is loaded (initialised). It currently fires when each ClassMetaData is initialised. This can cause problems if within the listener we need to access related metadata that is still being initialised.

It would be better if MetaDataManager just manages a list of notifications and then calls them when the whole initialisation process is complete.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 18/Jan/11 10:30 AM
SVN trunk updates the notification process so that it only calls the listener(s) when a load operation has completed (for all classes that were loaded during that call)