E&S CVS Commit: PEAK - Further simplified the naming SPI and factory registry, by switching from

pje at eby-sarna.com pje at eby-sarna.com
Fri Oct 11 16:49:01 EDT 2002

Module Name:	PEAK
Committed By:	pje
Date:		Fri Oct 11 20:48:26 UTC 2002

Modified Files:
	PEAK/src/peak/naming: contexts.py properties.py spi.py
	PEAK/src/peak/naming/factories: __init__.py

Log Message:
Further simplified the naming SPI and factory registry, by switching from
a utility to a property to specify the InitialContextFactory.  The speed
of factory lookups should be about the same, but now there's no need to
have a special provider thunked in at the configuration root.  I have now
removed the "so many levels of indirection ... it can make your head spin"
comment from peak.naming.spi's docstring.  :)

About the only thing I still need to figure out how to get rid of is the
basic factory registry...  But I think that would best wait until I've
standardized how the default GlobalConfig and LocalConfig objects will call
out to other packages for initialization.  I wonder if maybe there
shouldn't be some sort of "_pkgConfig.py" module present in PEAK
subpackages that could get used for this?  Perhaps it would be better to
wait until we have some kind of config file format and tackle it then.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 PEAK/src/peak/naming/contexts.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/naming/properties.py
cvs rdiff -r1.23 -r1.24 PEAK/src/peak/naming/spi.py
cvs rdiff -r1.14 -r1.15 PEAK/src/peak/naming/factories/__init__.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list