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

## com.sun.jersey.api.core
Interface ResourceContext

    public interface ResourceContext

The resource context provides access to instances of root resource classes.

It can be injected using the `Context` annotation.

Author:
  Martin Grotzke

Method Summary
`
`<T> T`
` | `getResource(java.lang.Class<T> c)` Provides an instance of the given resource class.

Method Detail

### getResource

    <T> T getResource(java.lang.Class<T> c)
                  throws ContainerException

  Provides an instance of the given resource class.

  Type Parameters:
    `T` - the type of the resource class
  Parameters:
    `c` - the resource class
  Returns:
    an instance if it could be resolved, otherwise null.
  Throws:
    `ContainerException` - if the resource class cannot be found.

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

Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.