[
https://hibernate.onjira.com/browse/HHH-7319?page=com.atlassian.jira.plug...
]
Emmanuel Bernard commented on HHH-7319:
---------------------------------------
Good question. I am fine with the isEnabled approach even though a more generic configure
approach would give the Integrator more flexibility. Playing the other side, if configure
becomes too complex, that's stepping into what service initiator can do and isolate.
ServiceContributingIntegrator do not have access to the configuration
and cannot adjust service registration accordingly
------------------------------------------------------------------------------------------------------------------------
Key: HHH-7319
URL:
https://hibernate.onjira.com/browse/HHH-7319
Project: Hibernate ORM
Issue Type: Improvement
Reporter: Emmanuel Bernard
In Hibernate OGM, I don't want to set my custom service initiators unless I know it
is explicitly being used.
I cannot do that today because ServiceContributingIntegrator does not have access to the
configuration.
I had to write all my service initiators so that they look at the configuration and
delegate to the "default" service initiator. That's a lot of redundant code.
I wonder if we can do better.
See
https://github.com/hibernate/hibernate-ogm/blob/master/hibernate-ogm-core...
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira