[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7319) ServiceContributingIntegrator do not have access to the configuration and cannot adjust service registration accordingly
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon May 14 11:40:09 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46650#comment-46650 ]
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/src/main/java/org/hibernate/ogm/service/impl/OgmIntegrator.java
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list