On 11/23/2010 09:32 AM, Tom Hobbs wrote:
If this is a desired approach (and the more I type, the more I warm to
the idea) it'd be good to design it with the Groovy configuration
stuff in mind, thus allowing different types of configuration
behaviour to be easily swapped in/out.

The groovy stuff is not needed perse. The standard configuration allows you to specify references to static methods. For instance i use:

ClientExports
{
    static serverEndpoint = FgJiniLayer.getServerEndpoint();
    static secureServerEndpoint = FgJiniLayer.getSecureServerEndpoint();
}

in the configuration file, and let the FgJiniLayer class sort out how to build the endpoints.

Gr. Sim

Reply via email to