org.jboss.resteasy.spi
Interface Registry

All Known Implementing Classes:
ResourceMethodRegistry

public interface Registry

Version:
$Revision: 1 $
Author:
Bill Burke

Method Summary
 void addJndiResource(String jndiName)
          Add a JAX-RS endpoint that exists in JNDI
 void addJndiResource(String jndiName, String basePath)
          Add a JAX-RS endpoint that exists in JNDI.
 void addPerRequestResource(Class<?> clazz)
          Add a JAX-RS endpoint.
 void addPerRequestResource(Class<?> clazz, String basePath)
          Add a JAX-RS endpoint.
 void addResourceFactory(ResourceFactory ref)
          Add a custom resource implementation endpoint.
 void addResourceFactory(ResourceFactory ref, String basePath)
          Add a custom resource implementation endpoint.
 void addResourceFactory(ResourceFactory ref, String base, Class<?> clazz)
          ResourceFactory.getScannableClass() is not used, only the clazz parameter and not any implemented interfaces of the clazz parameter.
 void addSingletonResource(Object singleton)
          Add a JAX-RS endpoint.
 void addSingletonResource(Object singleton, String basePath)
          Add a JAX-RS endpoint.
 ResourceInvoker getResourceInvoker(HttpRequest request)
           
 int getSize()
           
 void removeRegistrations(Class<?> clazz)
           
 void removeRegistrations(Class<?> clazz, String base)
           
 

Method Detail

addPerRequestResource

void addPerRequestResource(Class<?> clazz)
Add a JAX-RS endpoint. Objects of clazz will be created and destroy and the beginning/end of every request

Parameters:
clazz -

addPerRequestResource

void addPerRequestResource(Class<?> clazz,
                           String basePath)
Add a JAX-RS endpoint. Objects of clazz will be created and destroy and the beginning/end of every request

Parameters:
clazz -
basePath - prefix path of resource

addSingletonResource

void addSingletonResource(Object singleton)
Add a JAX-RS endpoint.

Parameters:
clazz -

addSingletonResource

void addSingletonResource(Object singleton,
                          String basePath)
Add a JAX-RS endpoint.

Parameters:
clazz -
basePath - prefix path of resource

addJndiResource

void addJndiResource(String jndiName)
Add a JAX-RS endpoint that exists in JNDI

Parameters:
clazz -

addJndiResource

void addJndiResource(String jndiName,
                     String basePath)
Add a JAX-RS endpoint that exists in JNDI.

Parameters:
clazz -
basePath - prefix path of resource

addResourceFactory

void addResourceFactory(ResourceFactory ref)
Add a custom resource implementation endpoint.

Parameters:
ref -

addResourceFactory

void addResourceFactory(ResourceFactory ref,
                        String basePath)
Add a custom resource implementation endpoint.

Parameters:
ref -
basePath - prefix path of resource

addResourceFactory

void addResourceFactory(ResourceFactory ref,
                        String base,
                        Class<?> clazz)
ResourceFactory.getScannableClass() is not used, only the clazz parameter and not any implemented interfaces of the clazz parameter.

Parameters:
factory -
base - base URI path for any resources provided by the factory, in addition to rootPath
clazz - specific class
offset - path segment offset. > 0 means we're within a locator.

removeRegistrations

void removeRegistrations(Class<?> clazz)

removeRegistrations

void removeRegistrations(Class<?> clazz,
                         String base)

getSize

int getSize()

getResourceInvoker

ResourceInvoker getResourceInvoker(HttpRequest request)


Copyright © 2011. All Rights Reserved.