Interface Registry
- All Known Implementing Classes:
ResourceMethodRegistry
,VertxRegistry
public interface Registry
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
addJndiResource
(String jndiName, ResourceClass resourceClass) void
addJndiResource
(String jndiName, ResourceClass resourceClass, String basePath) void
addPerRequestResource
(Class<?> clazz) Add a JAX-RS endpoint.void
addPerRequestResource
(Class<?> clazz, String basePath) Add a JAX-RS endpoint.default void
addPerRequestResource
(Class<?> clazz, ResourceBuilder resourceBuilder) void
void
addPerRequestResource
(ResourceClass clazz, String basePath) void
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) default void
addResourceFactory
(ResourceFactory ref, ResourceBuilder resourceBuilder) default void
addResourceFactory
(ResourceFactory ref, ResourceBuilder resourceBuilder, String basePath) default void
addResourceFactory
(ResourceFactory ref, ResourceBuilder resourceBuilder, String base, Class<?> clazz) default void
addResourceFactory
(ResourceFactory ref, ResourceBuilder resourceBuilder, String base, Class<?>[] classes) void
addSingletonResource
(Object singleton) Add a JAX-RS endpoint.void
addSingletonResource
(Object singleton, String basePath) Add a JAX-RS endpoint.void
addSingletonResource
(Object singleton, ResourceClass resourceClass) void
addSingletonResource
(Object singleton, ResourceClass resourceClass, String basePath) void
getResourceInvoker
(HttpRequest request) int
getSize()
void
removeRegistrations
(Class<?> clazz) void
removeRegistrations
(Class<?> clazz, String base) void
removeRegistrations
(ResourceClass resourceClass)
-
Method Details
-
addPerRequestResource
Add a JAX-RS endpoint. Objects of clazz will be created and destroy and the beginning/end of every request.- Parameters:
clazz
- class
-
addPerRequestResource
-
addPerRequestResource
-
addSingletonResource
-
addSingletonResource
-
addJndiResource
Add a JAX-RS endpoint that exists in JNDI.- Parameters:
jndiName
- JNDI name
-
addJndiResource
-
addResourceFactory
Add a custom resource implementation endpoint.- Parameters:
ref
- resource factory
-
addResourceFactory
-
addResourceFactory
Add a custom resource implementation endpoint.- Parameters:
ref
- resource factorybasePath
- prefix path of resource
-
addResourceFactory
default void addResourceFactory(ResourceFactory ref, ResourceBuilder resourceBuilder, String basePath) -
addResourceFactory
ResourceFactory.getScannableClass() is not used, only the clazz parameter and not any implemented interfaces of the clazz parameter.- Parameters:
ref
- resource factorybase
- base URI path for any resources provided by the factory, in addition to rootPathclazz
- specific class
-
addResourceFactory
default void addResourceFactory(ResourceFactory ref, ResourceBuilder resourceBuilder, String base, Class<?> clazz) -
addResourceFactory
-
addResourceFactory
default void addResourceFactory(ResourceFactory ref, ResourceBuilder resourceBuilder, String base, Class<?>[] classes) -
removeRegistrations
-
removeRegistrations
-
getSize
int getSize() -
getResourceInvoker
-
addResourceFactory
-
removeRegistrations
-
addPerRequestResource
-
addPerRequestResource
-
addSingletonResource
-
addSingletonResource
-
addJndiResource
-
addJndiResource
-
checkAmbiguousUri
void checkAmbiguousUri()
-