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

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



Back to the top