First, I'd like to say this isn't a question of design, but a question of compliance. I'm aware there are issues with the current setup.
In a module, there are packages that are named after the servers, which has many of the same variables/functions that pertain to that server. It looks like this was set up so that you could do:
PRODUCTION_SERVER_NAME::printer()or
TEST_SERVER_NAME::printer()
Perhaps a better design might have been something like:
CENTRAL_PACKAGE_NAME::printer('production')orCENTRAL_PACKAGE_NAME::printer('test')
Anyhow, it seems the server names have changed, so instead of using the actual servernames, I'd like to rename the packages to just PRODUCTION or TEST, without changing the other code that is still refering to PRODUCTION_SERVER_NAME.
Something like:
package PRODUCTION, PRODUCTION_SERVER_NAME; # pseudo code
I'm guessing some sort of glob/import might work, but was wondering if there is already something that does something similar. I also realize it's not good practice to saturate namespaces.