14 Commits

Author SHA1 Message Date
aaronleventhal%moonset.net
dbd6cd428b Comment fix. SingletonFactory no longer exists. r+sr=shaver
git-svn-id: svn://10.0.0.236/trunk@161662 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 15:38:56 +00:00
timeless%mozdev.org
d5f9c7bdbe Bug 243621 Standardize QueryInterface without throw
r=neil sr=darin


git-svn-id: svn://10.0.0.236/trunk@156489 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-17 23:38:25 +00:00
timeless%mozdev.org
88f8ccca4e Bug 241261 remove nsSample.js comment about bug 14460
r=dougt


git-svn-id: svn://10.0.0.236/trunk@155630 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-28 12:44:20 +00:00
seawood%netscape.com
18248a8c6e Use debug() instead of dump() so that js component registration output only shows up in debug builds.
Bug #138726 r=rginda sr=alecf


git-svn-id: svn://10.0.0.236/trunk@119603 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-23 07:30:11 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
brendan%mozilla.org
9cb06ebf27 Define QI now that XPConnect wraps JS objects; fix comments (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@79410 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 02:31:11 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
rayw%netscape.com
b02b43d396 Changed case of nsIFactory.idl methods to start with lower case to be like other
interfaces.  Since the C++ generated code upper-cases the method names, this
affects no C++ code, but only a few javascript methods.

Bug 46771.

r=waterson.

I am in today and tomorrow.


git-svn-id: svn://10.0.0.236/trunk@76014 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:12:08 +00:00
brendan%mozilla.org
154af1de4d Fiddle whitespace style.
git-svn-id: svn://10.0.0.236/trunk@72186 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 04:46:22 +00:00
mccabe%netscape.com
fb8d5eef77 Not used by Mozilla!
(also fixes a warning)

Change to use non-deprecated js getter/setter syntax.


git-svn-id: svn://10.0.0.236/trunk@70722 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 07:20:11 +00:00
shaver%netscape.com
6896473ece - NS_ERROR_FACTORY_REGISTER_AGAIN for deferring registration of a module until
later in the autoreg cycle.
- teach native component loader about deferred components
- add nsIComponentLoader::registerDeferredComponents
- teach component manager about deferred components
- made nsID::Parse take a |const char *| instead of a simple |char *|.
- move release of XPTI singletons until _after_ shutting down the component
  manager to prevent re-initialization during JS component shutdown.
- category manager work: really delete from reg, start on enumeration
- use nsXPIDLCString instead of autoStringFree.
- fix nsRegistry to use allocator properly.
- cleaner memory management in nsFactoryEntry.
- capitalization fixed in nsIComponentLoader.idl
- clean up loader creation logic
- remove/disable lots of DEBUG_shaver noise
- added (disabled) warning about NSGetFactory usage
- move .so and .shlb higher up in the ValidDllExtensions list to marginally
  speed up registration.
- added nsDll::GetRegistryLocation API
- properly export nsSupportsArray.h
- capitalization fixes in nsIEnumerator.idl
- added deferral to nsSample.js


git-svn-id: svn://10.0.0.236/trunk@53047 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 00:28:34 +00:00
shaver%netscape.com
dd157213ab updated nsSample.js, long overdue (r=brendan)
git-svn-id: svn://10.0.0.236/trunk@52537 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 07:36:25 +00:00
shaver%netscape.com
ff631a3996 add JS version of nsISample component
git-svn-id: svn://10.0.0.236/trunk@48620 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:11:29 +00:00