[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.wsvt] Re: WSVT without Eclipse

> The default validators should probably be registered automatically. 

I would like to suggest that you employ the Service Discovery pattern
made famous by JavaMail and embodied in the commons-discovery framework
(although commons-discovery is certainly NOT a prerequisite for this
pattern).

The short version (for those not familiar) is that your delegate is an
interface and you discover (at runtime) those who provide such an
interface by asking the ClassLoader for
/META-INF/services/${fq_javaInterfaceName} which is a Properties file
containing a (possibly singular) list of the concrete implementing
class(es) that should be instantiated and used.

I have seen this used more and more (I believe wsdl4j uses it also) and
I am really sold on its usefulness.

  -- /v\atthew