Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Calls to ClasspathHelper in JPA facet install delegate
Calls to ClasspathHelper in JPA facet install delegate [message #815521] Wed, 07 March 2012 19:24 Go to next message
Leonard Theivendra is currently offline Leonard TheivendraFriend
Messages: 36
Registered: July 2009
Hi team, wanted to ask about a problem we're seeing in an adopter product based on WTP 3.3+ (eclipse 3.7+ based). Given that the JPA facet is no longer tied to the utility facet, when standalone JPA projects are created targeted to a runtime, the project's classpath no longer gets updated with the runtime classpath container.

It appears that the JPA facet install delegate does not explicitly call ClasspathHelper.removeClasspathEntries(project, fv) and ClasspathHelper.addClasspathEntries(project, fv) .. beforehand this was being handled in the utility facet.

Is this by design? Should the JPA facet install delegate call the classpath helper or should adopter products implement their own listeners to call the classpath helpers and update the project's classpath for the runtime?

Re: Calls to ClasspathHelper in JPA facet install delegate [message #815560 is a reply to message #815521] Wed, 07 March 2012 20:22 Go to previous message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
I believe this is all intentional. There are many who do not want the entire runtime plastered on to their classpath every time. The library provider for the JPA facet handles adding the proper items to the project classpath. If the user chooses a "runtime" library provider, then the library provider adds only the entries from the runtime that are appropriate for the facet chosen, and it is up to the runtime implementation to know which entries are appropriate for each facet.

We don't have any runtime implementations that do this, so this is somewhat theorycraft, but it's pretty much what I've been told by the library provider framework guys.
Previous Topic:JPA Diagram Editor and JEE INDIGO error.
Next Topic:Generate tables from entities stop to work after convert JPA into a OSGi project
Goto Forum:

Current Time: Fri May 14 14:47:18 GMT 2021

Powered by FUDForum. Page generated in 0.01887 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top