[Dev] ZipTie Namespace Protection
Leo Bayer
lbayer at alterpoint.com
Fri Jan 25 19:19:27 CST 2008
Kartick et al,
As we begin to accept third party contributions to the ZONA site we need
to avoid namespace conflicts. I don't really care if anyone's namespace
conflicts with some other persons namespace, but I am concerned about
third-party names colliding with our own names. Third parties should
never contribute using the plug-in or java namespace prefix of
"org.ziptie." or the perl namespace prefix of "ZipTie::".
Assuming I'm a third party. If I were to contribute a client plug-in
called something like "org.ziptie.ui.routing" it would prevent us from
being able to name a plug-in the same thing. The plug-in's ID really
should be something like "com.lbayer.routing" as that namespace is
specific to me the contributor. Likewise with Perl packages and Adapter
IDs. The "ZipTie" root namespace is registered on CPAN so that no one
else can upload Perl modules to CPAN with that namespace. This means
that a contributor shouldn't really be creating an adapter called
"ZipTie::Adapters::Goldberg::G9000" as that namespace is already taken.
(This implies that "ziptie.adapters.goldberg.g9000" is not an acceptable
third-party adapter plug-in id.)
I'm not sure what the third party namespaces for adapters should look
like but I imagine it should follow some conventional Perl naming practice.
The point, I believe, is that we need prevent contributors from using
our namespace.
- Leo
More information about the Dev
mailing list