org.apache.cxf.bus.spring
Class BusApplicationContextResourceResolver

java.lang.Object
  extended by org.apache.cxf.bus.spring.BusApplicationContextResourceResolver
All Implemented Interfaces:
ResourceResolver, org.springframework.context.ApplicationContextAware

public class BusApplicationContextResourceResolver
extends java.lang.Object
implements ResourceResolver, org.springframework.context.ApplicationContextAware


Constructor Summary
BusApplicationContextResourceResolver()
           
 
Method Summary
 java.io.InputStream getAsStream(java.lang.String name)
          Resolve a resource given its name and return an InputStream to it.
<T> T
resolve(java.lang.String resourceName, java.lang.Class<T> resourceType)
          Resolve a resource given its name and type.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusApplicationContextResourceResolver

public BusApplicationContextResourceResolver()
Method Detail

getAsStream

public java.io.InputStream getAsStream(java.lang.String name)
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 <T> T resolve(java.lang.String resourceName,
                     java.lang.Class<T> resourceType)
Description copied from interface: ResourceResolver
Resolve a resource given its name and type.

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

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Apache CXF