Hi Stuart,
Please use the following statements to set coder registry providers:
DevelopmentRunner.setServerRegistryProviderClassName("test.extensions
.server.MyServerCoderRegistryProvider");
DevelopmentRunner.setClientRegistryProviderClassName("test.extensions
.client.MyClientCoderRegistryProvider");
Or you can set them with command line args -server-coder-registry-provider
<class name > -client-coder-registry-provider <class name>
I agree that this has not been documented well. I have created an issue:
https://www.canoo.com/jira/browse/UBA-7069
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Stuart Booth
>Sent: Wednesday, October 04, 2006 2:03 AM
>To: [email protected]
>Subject: [ULC-developer] Coders with DevelopmentRunner
>
>
>I am trying to set the client and server coder registry providers
>using the
>DevelopmentRunner, but not having any success.
>
>Following the descriptions in the Extensions guide, I have made
>the classes
>for the client and the server. But when I run my code, I get an exception
>saying there is no Coder set.
>
>I set the classes like this:
>
> DevelopmentRunner.setApplicationClass(CircleApp.class);
> DevelopmentRunner.setUseGui(true);
>
> Properties serverProps = new Properties();
> serverProps.setProperty("server-coder-registry-provider",
>"test.extensions.server.MyServerCoderRegistryProvider");
> DevelopmentRunner.setInitParameters(serverProps);
>
> Properties clientProps = new Properties();
> clientProps.setProperty("client-coder-registry-provider",
>"test.extensions.client.MyClientCoderRegistryProvider");
> DevelopmentRunner.setUserParameters(clientProps);
>
> DevelopmentRunner.run();
>
>I suspect that I am setting these registries incorrectly, as it
>appears that
>the classes don't actually get called. Can you see something obviously
>wrong?
>
>Thanks.
>-Stuart Booth (Abacus Research)
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer