01: package org.objectweb.celtix.bus.jaxws;
02:
03: import java.io.InputStream;
04: import javax.xml.ws.WebServiceContext;
05: import org.objectweb.celtix.context.WebServiceContextImpl;
06: import org.objectweb.celtix.resource.ResourceResolver;
07:
08: public class WebContextResourceResolver implements ResourceResolver {
09:
10: // Implementation of org.objectweb.celtix.resource.ResourceResolver
11:
12: public final InputStream getAsStream(final String string) {
13: return null;
14: }
15:
16: public final <T> T resolve(final String string, final Class<T> clz) {
17: if (WebServiceContext.class.isAssignableFrom(clz)) {
18: return clz.cast(new WebServiceContextImpl());
19: }
20: return null;
21: }
22: }
|