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 34556 - ContextId is more an SPI
Summary: ContextId is more an SPI
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-06-24 13:27 UTC by Jaroslav Tulach
Modified: 2004-04-19 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-06-24 13:27:50 UTC
Somehow remove the part of ContextId that is
supposed to be subclassed and keep just the API
part. I would suggest something like:

public final class api.ContextId {
   // maybe nothing, maybe:

   public String getExternalId ();
}

and have a factory method in SPI:

ContextId spi.Settings.createContextId (...,
ContextIdSpi, ...)

where ContextIdSpi could have the necessary
methods for communication between the
implementation and the internals.

Generally I am suggesting a variant of 
http://openide.netbeans.org/tutorial/api-design.html#design.less.friend
Comment 1 Vitezslav Stejskal 2003-06-24 13:51:51 UTC
Sounds reasonable, I already thought that CI doesn't look really like
the API class. Thanks.
Comment 2 Vitezslav Stejskal 2003-11-24 14:00:14 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 3 Jan Becicka 2003-11-25 13:46:45 UTC
Marking issue as VERIFIED --->
Comment 4 Jan Becicka 2003-11-25 13:51:19 UTC
---> CLOSED