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-1229
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

Add ExecutionContextReference interface, and use it in bytecode enhancement contract

Created: 15/Jun/14 09:53 AM   Updated: 18/Nov/14 07:57 PM   Resolved: 15/Nov/14 12:28 PM
Component/s: Code Structure, Enhancer
Affects Version/s: None
Fix Version/s: 4.1.0.m1

 Description  « Hide
This would potentially allow us to provide a "datanucleus-enhancement" mini-jar providing just the necessary classes in the enhancement contract. Would need to cast the dnGetExecutionContext result to the right class where required.

Some refactorings needed to isolate the enhancement contract into its own package (so potentially separable in the future) :-
org.datanucleus.enhancer.Persistable -> org.datanucleus.enhancement.Persistable
org.datanucleus.state.StateManager -> org.datanucleus.enhancement.StateManager

This will impact on api.jdo, api.jpa,, and store.neodatis

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 15/Nov/14 12:28 PM
GitHub master has this now. All classes in org.datanucleus.enhancement have no imports, hence have no dependency on anything external, and consequently enhanced classes could be used with a simple jar of just this package should someone want to do that