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.
|
void |
checkAmbiguousUri() |
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
- classvoid addPerRequestResource(Class<?> clazz, String basePath)
clazz
- classbasePath
- prefix path of resourcevoid addSingletonResource(Object singleton)
singleton
- resourcevoid addSingletonResource(Object singleton, String basePath)
singleton
- resourcebasePath
- prefix path of resourcevoid addJndiResource(String jndiName)
jndiName
- JNDI namevoid addJndiResource(String jndiName, String basePath)
jndiName
- JNDI namebasePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref)
ref
- resource factoryvoid addResourceFactory(ResourceFactory ref, String basePath)
ref
- resource factorybasePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref, String base, Class<?> clazz)
ref
- resource factorybase
- 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)
void checkAmbiguousUri()
Copyright © 2019 JBoss by Red Hat. All rights reserved.