Interface Registry

    • 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 - class
      • addPerRequestResource

        default void addPerRequestResource​(Class<?> clazz,
                                           ResourceBuilder resourceBuilder)
      • 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 - class
        basePath - prefix path of resource
      • addSingletonResource

        void addSingletonResource​(Object singleton)
        Add a JAX-RS endpoint.
        Parameters:
        singleton - resource
      • addSingletonResource

        void addSingletonResource​(Object singleton,
                                  String basePath)
        Add a JAX-RS endpoint.
        Parameters:
        singleton - resource
        basePath - prefix path of resource
      • addJndiResource

        void addJndiResource​(String jndiName)
        Add a JAX-RS endpoint that exists in JNDI.
        Parameters:
        jndiName - JNDI name
      • addJndiResource

        void addJndiResource​(String jndiName,
                             String basePath)
        Add a JAX-RS endpoint that exists in JNDI.
        Parameters:
        jndiName - JNDI name
        basePath - prefix path of resource
      • addResourceFactory

        void addResourceFactory​(ResourceFactory ref)
        Add a custom resource implementation endpoint.
        Parameters:
        ref - resource factory
      • addResourceFactory

        void addResourceFactory​(ResourceFactory ref,
                                String basePath)
        Add a custom resource implementation endpoint.
        Parameters:
        ref - resource factory
        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:
        ref - resource factory
        base - base URI path for any resources provided by the factory, in addition to rootPath
        clazz - specific class
      • removeRegistrations

        void removeRegistrations​(Class<?> clazz)
      • removeRegistrations

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

        int getSize()
      • removeRegistrations

        void removeRegistrations​(ResourceClass resourceClass)
      • addPerRequestResource

        void addPerRequestResource​(ResourceClass clazz)
      • addSingletonResource

        void addSingletonResource​(Object singleton,
                                  ResourceClass resourceClass)
      • checkAmbiguousUri

        void checkAmbiguousUri()