com.sun.ws.rest.spi.resource
Interface ResourceProvider


public interface ResourceProvider

A provider that manages the creation of resource class instances. A provider instance is specific to a particular class of resource.


Method Summary
 java.lang.Object getInstance(ComponentProvider provider, HttpRequestContext request)
          Called to obtain an instance of a resource class.
 void init(ComponentProvider provider, AbstractResource resource)
          Specifies the class of the resource that the provider instance will manage access to.
 

Method Detail

init

void init(ComponentProvider provider,
          AbstractResource resource)
Specifies the class of the resource that the provider instance will manage access to.

Parameters:
provider - the component provider
resource - the abstract resource

getInstance

java.lang.Object getInstance(ComponentProvider provider,
                             HttpRequestContext request)
Called to obtain an instance of a resource class.

Parameters:
provider - the component provider
request - the HTTP request
Returns:
an initialized instance of the supplied class