public interface Registry
Modifier and Type | Method and Description |
---|---|
void |
addJndiResource(String jndiName)
Add a JAX-RS endpoint that exists in JNDI
|
void |
addJndiResource(String jndiName,
ResourceClass resourceClass) |
void |
addJndiResource(String jndiName,
ResourceClass resourceClass,
String basePath) |
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 |
addPerRequestResource(ResourceClass clazz) |
void |
addPerRequestResource(ResourceClass clazz,
String basePath) |
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 |
addResourceFactory(ResourceFactory ref,
String base,
Class<?>[] classes) |
void |
addResourceFactory(ResourceFactory rf,
String base,
ResourceClass resourceClass) |
void |
addSingletonResource(Object singleton)
Add a JAX-RS endpoint.
|
void |
addSingletonResource(Object singleton,
ResourceClass resourceClass) |
void |
addSingletonResource(Object singleton,
ResourceClass resourceClass,
String basePath) |
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) |
void |
removeRegistrations(ResourceClass resourceClass) |
void addPerRequestResource(Class<?> clazz)
clazz
- void addPerRequestResource(Class<?> clazz, String basePath)
clazz
- basePath
- prefix path of resourcevoid addSingletonResource(Object singleton)
singleton
- void addSingletonResource(Object singleton, String basePath)
singleton
- basePath
- prefix path of resourcevoid addJndiResource(String jndiName)
jndiName
- void addJndiResource(String jndiName, String basePath)
jndiName
- basePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref)
ref
- void addResourceFactory(ResourceFactory ref, String basePath)
ref
- basePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref, String base, Class<?> clazz)
ref
- base
- base URI path for any resources provided by the factory, in addition to rootPathclazz
- specific classvoid addResourceFactory(ResourceFactory ref, String base, Class<?>[] classes)
void removeRegistrations(Class<?> clazz)
int getSize()
ResourceInvoker getResourceInvoker(HttpRequest request)
void addResourceFactory(ResourceFactory rf, String base, ResourceClass resourceClass)
void removeRegistrations(ResourceClass resourceClass)
void addPerRequestResource(ResourceClass clazz)
void addPerRequestResource(ResourceClass clazz, String basePath)
void addSingletonResource(Object singleton, ResourceClass resourceClass)
void addSingletonResource(Object singleton, ResourceClass resourceClass, String basePath)
void addJndiResource(String jndiName, ResourceClass resourceClass)
void addJndiResource(String jndiName, ResourceClass resourceClass, String basePath)
Copyright © 2014. All Rights Reserved.