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

Summary: Lookups.metaInfServices(String prefix)
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: LookupAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: apireviews
Priority: P2 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Contains implementation of metaInfServices(prefix) lookup

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 ***