This is a JAX-RS spec that specifies how to search for the RuntimeDegelate.
The javadoc for the RuntimeDelegate javax.ws.rs.ext.
RuntimeDelegate.getInstance() states the following:
*
Obtain a RuntimeDelegate instance. If an instance had not already been
created and set via setInstance, the first invocation will create an
instance which will then be cached for future use.

The algorithm used to locate the RuntimeDelegate subclass to use consists of
the following steps:


If a resource with the name of
META-INF/services/javax.ws.rs.ext.RuntimeDelegate exists, then its first
line, if present, is used as the UTF-8 encoded name of the implementation
class.
If the $java.home/lib/jaxrs.properties file exists and it is readable by the
java.util.Properties.load(InputStream) method and it contains an entry whose
key is javax.ws.rs.ext.RuntimeDelegate, then the value of that entry is used
as the name of the implementation class.
If a system property with the name javax.ws.rs.ext.RuntimeDelegate is
defined, then its value is used as the name of the implementation class.
Finally, a default implementation class name is used. *


On Wed, Feb 9, 2011 at 11:29 AM, Pradeep Fernando <[email protected]>wrote:

> hi all,
>
>
> Got it resolved. My fault. class loading issue. sorry for the unwanted
> noise here in the list.
> BTW, can somebody tell me what is the approach use by wink to specify
> the runtime delegate class (spec defines several options.). right now
> I'm using JVM property for my test purposes.
>
> thanks all for your help.
> --Pradeep
>

Reply via email to