DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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

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.

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)

Andy Jefferson made changes - 18/Jan/11 10:30 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.0.m1 [ 11060 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 23/Jan/11 11:57 AM
Status Resolved [ 5 ] Closed [ 6 ]