Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] SessionCustomizer instance via EMF property

Doug --

Thanks for the reply. After reading your response, and re-reading my original post I see that I wasn't clear / misspoke. Let me try this again. 

I want to be able to pass a SessionCustomizer instance in as a property to Persistence.createEntityManagerFactory(...) / PersistenceProvider.createContainerEntityManagerFactory(...). I don't want to change the meaning / semantics of SessionCustomization. I only want to be able to provide an instance as opposed to a String Class name.

Thanks,
Rick

On Thu, Mar 19, 2015 at 5:23 PM, Doug Clarke <douglas.clarke@xxxxxxxxxx> wrote:
Rick,

I believe its historical where the session customization was generally focussed on the EMF/ServerSession. The only caution I offer is that users would need to understand that this usage should be limited to customizing features of the specific EM/UnitOfWork/ClientSession and not setting of the shared ServerSession.

As an example if in a customizer you accessed the descriptor for an entity class and changed a setting it would effect the entire EMF.

Doug

On Mar 19, 2015, at 5:37 PM, Rick Curtis <curtisr7@xxxxxxxxx> wrote:

> Is there a technical reason why EclipseLink doesn't support passing a SessionCustomizer instance in via emf.create(...) properties? As it is today, SessionCustomizers are fairly static and I need to be able to create one at runtime such that it has some amount of state associated with it.
>
> Would anyone be opposed to me adding support to EntityManagerSetupImpl so that the eclipselink.session.customizer property can accept a Stringified class name, or a SessionCustomizer instance?
>
> Thanks,
> Rick
> _______________________________________________
> eclipselink-dev mailing list
> eclipselink-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/eclipselink-dev

_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev



--
Rick Curtis

Back to the top