Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.1
-
Fix Version/s: 2.3-M2
-
Component/s: Persistence
-
Labels:None
-
Environment:All
Description
Currently, you need to pass in a datasource into AbstractPersistenceEventListener constructor, otherwise a NullPointerException is raised.
The documentation states that you should be able to just add a listener without a datasource.
def init =
{ applicationContext.addApplicationListener(new MyPersistenceListener()) }This case should be supported.