org.jboss.resteasy.spi
Interface Registry

All Known Implementing Classes:
ResourceMethodRegistry

public interface Registry

Version:
$Revision: 1 $
Author:
Bill Burke

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

Method Detail

addPerRequestResource

void addPerRequestResource(java.lang.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(java.lang.Class<?> clazz,
                           java.lang.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(java.lang.Object singleton)
Add a JAX-RS endpoint.

Parameters:
clazz -

addSingletonResource

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

Parameters:
clazz -
basePath - prefix path of resource

addJndiResource

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

Parameters:
clazz -

addJndiResource

void addJndiResource(java.lang.String jndiName,
                     java.lang.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,
                        java.lang.String basePath)
Add a custom resource implementation endpoint.

Parameters:
ref -
basePath - prefix path of resource

addResourceFactory

void addResourceFactory(ResourceFactory ref,
                        java.lang.String base,
                        java.lang.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(java.lang.Class<?> clazz)

removeRegistrations

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

getSize

int getSize()

getResourceInvoker

ResourceInvoker getResourceInvoker(HttpRequest request)


Copyright © 2010. All Rights Reserved.