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 98437 - Lookups.metaInfServices(String prefix)
Summary: Lookups.metaInfServices(String prefix)
Status: RESOLVED DUPLICATE of bug 98426
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2007-03-21 10:49 UTC by Jaroslav Tulach
Modified: 2008-12-22 10:58 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Contains implementation of metaInfServices(prefix) lookup (21.61 KB, patch)
2007-03-21 10:52 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2007-03-21 10:49:43 UTC
metaInfServices is nice and low cost concept - it allows registrations just by 
putting JAR files on classpath. No need for org-openide-fs or 
org-openide-loaders, etc.

However for purposes of issue 98426 it would need a bit of generalization - an 
ability to search not only META-INF/services, but do the search for any other 
prefix.

I'll attach a simple patch that does that.
Comment 1 Jaroslav Tulach 2007-03-21 10:52:15 UTC
Created attachment 39744 [details]
Contains implementation of metaInfServices(prefix) lookup
Comment 2 Jaroslav Tulach 2007-03-21 12:10:52 UTC
The previous patch contains implementation of Lookups.metaInfServices(prefix), 
plus some additional stuff that can be ignored. Are there any objections 
against the new metaInfServices method?
Comment 3 Jesse Glick 2007-03-21 22:19:06 UTC
I don't see what the intended purpose of this is. We already have too many
registration mechanisms in NB, IMHO - this would just add one more.
Comment 4 Jaroslav Tulach 2007-04-16 21:48:13 UTC

*** This issue has been marked as a duplicate of 98426 ***