Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.resource
Class PropertiesResolver

    java.lang.Object
      org.apache.cxf.resource.PropertiesResolver

All Implemented Interfaces:
  ResourceResolver

    public class PropertiesResolver

extends Object
implements ResourceResolver

Constructor Summary
`PropertiesResolver(Map<String,Object> p)`

Method Summary
`InputStream` | `getAsStream(String name)` Resolve a resource given its name and return an InputStream to it.
`
`<T> T`
` | `resolve(String resourceName, Class<T> resourceType)` Resolve a resource given its name and type.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PropertiesResolver

    public PropertiesResolver(Map<String,Object> p)

Method Detail

### getAsStream

    public InputStream getAsStream(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(String resourceName,
                         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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF