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 34618 - Too many factory classes in api package
Summary: Too many factory classes in api package
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-06-26 13:41 UTC by Jaroslav Tulach
Modified: 2004-04-19 16:15 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-26 13:41:35 UTC
When clicking thru javadoc I was often surprised
when can be hidden under some classes:

RemoteBuildSupport is in fact a factory for
creation of Compilable objects

BuildConfiguration is also a helper class with two
static methods

BuildTargetTranferable (as reported in other bug)
could be factory method as well.

ActionFactory is a factory (but that is at least
easy to get from the name ;-)


But all these cases lead me to this suggestion:
Why not have just one class with such factory
methods? This is common in java.util.Collections
or in org.netbeans.spi.looks.Looks and in other
places as well. This might make the javadoc more
compact (less classes) and for those who know this
convention also easier to read.
Comment 1 Dusan Balek 2003-07-09 16:23:02 UTC
BuildUtils created to collect factory methods form BuildConfiguration,
RemoteBuildSupport, and BuildTargetTranferable. ActionsFactory let
separated because factory methods it contains are not directly
"project related" (unlike the methods collected in BuildUtils).
Comment 2 Jan Becicka 2003-11-25 14:01:40 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 3 Jan Becicka 2003-11-25 14:10:23 UTC
---> CLOSED