> String classname;
> String class = message.get(MESSAGE_PARAM);
> 
> if (message.indexOf(".") == -1)
>      classname = "org.apache.xindice.server.rpc.messages." +
>          class; // the package might be encoded in a static string...
> else
>      classname = class;

Well... ugly indeed.  :-)

But you have answered my question: the 'class' variable can contain a
fully-qualified classpath (with package).

In that case, let's change our own code and add
'org.apache.xindice.server.rpc' when we use a message's name.  This will give
our users the freedom to define their own messages and doesn't bother us too
much (couple of query-replace)

-Vladimir

=====
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Reply via email to