org.apache.cxf.jaxws.context
Class WebServiceContextResourceResolver

java.lang.Object
  extended by org.apache.cxf.jaxws.context.WebServiceContextResourceResolver
All Implemented Interfaces:
ResourceResolver

public class WebServiceContextResourceResolver
extends Object
implements ResourceResolver


Constructor Summary
WebServiceContextResourceResolver()
           
WebServiceContextResourceResolver(Bus b)
           
 
Method Summary
 InputStream getAsStream(String string)
          Resolve a resource given its name and return an InputStream to it.
<T> T
resolve(String string, Class<T> clz)
          Resolve a resource given its name and type.
 void setBus(Bus b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceContextResourceResolver

public WebServiceContextResourceResolver()

WebServiceContextResourceResolver

public WebServiceContextResourceResolver(Bus b)
Method Detail

setBus

public final void setBus(Bus b)

getAsStream

public final InputStream getAsStream(String string)
Description copied from interface: ResourceResolver
Resolve a resource given its name and return an InputStream to it.

Specified by:
getAsStream in interface ResourceResolver
Returns:
an InputStream for the resource or null if it could not be found.

resolve

public final <T> T resolve(String string,
                           Class<T> clz)
Description copied from interface: ResourceResolver
Resolve a resource given its name and type.

Specified by:
resolve in interface ResourceResolver
Parameters:
string - name of the resource to resolve.
clz - type of the resource to resolve.
Returns:
an instance of the resource or null if the resource cannot be resolved.


Apache CXF