This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 41832 - Enhance Java Libraries API to allow custom implementations
Summary: Enhance Java Libraries API to allow custom implementations
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-04-08 10:55 UTC by Milos Kleint
Modified: 2006-03-24 09:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2004-04-08 10:55:01 UTC
Se this thread for details:

http://www.netbeans.org/servlets/ReadMsg?msgId=729654&listName=nbdev
Comment 1 Tomas Zezula 2004-04-09 08:13:11 UTC
As I understand from the attached thread all you need is to plug
another library provider. This can be done quite easily by extending
the SPI.
If you also needed to make the library non final, it would be much
more worse. It would break the API/SPI design.
Comment 2 Milos Kleint 2004-04-13 08:46:48 UTC
Jesse Glick wrote:
"I don't think the current SPI permits this. Currently the SPI permits 
you to plug in "providers" which can load library definitions of a 
specified type (given as a String id) from a fixed location in the 
system file system. But what you need is a way to bypass this storage 
mechanism entirely and have a provider which can produce a list of 
library objects based on some quite different storage - i.e. Maven's 
local repository."

AFAIK I need a way to bypass the 2-step LibraryImplementation creation
process. (First an empty new instance is created, filled in by the
framework somehow and later I can add my stuff form the provider) I
alos don't need the storage provided by netbeans. I'm always able to
regenerate the content of my library storage on startup. Plus running
arbitrary maven goals can retrieve more artifacts from remote
repository and make the available in the local repo.

as far as I understand it, I would need a different contract in the
SPI, to bypass the current SPI mechanism while maintaining the API-SPI
contract. My libraryImplementation instances provider would give the
framework a full fledged instance of libraryimplementation and no
handling on the framework's side is required.
Comment 3 Tomas Zezula 2004-04-27 09:03:39 UTC
Fixed.
Comment 4 Marian Mirilovic 2005-12-20 15:47:27 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.