Class ApplicationHost


  • public class ApplicationHost
    extends javax.ws.rs.core.Application
    A composite JAX-RS application that can receive fragments from outside.
    Author:
    Bogdan Stefanescu
    • Constructor Detail

      • ApplicationHost

        public ApplicationHost​(String name)
    • Method Detail

      • getName

        public String getName()
      • addReloadListener

        public void addReloadListener​(Reloadable listener)
      • removeReloadListener

        public void removeReloadListener​(Reloadable listener)
      • reload

        public void reload()
      • getBundle

        public org.osgi.framework.Bundle getBundle​(Class<?> clazz)
        Get the bundle declaring the given root class. This method is not synchronized since it is assumed to be called after the application was created and before it was destroyed.
        When a bundle is refreshing this method may throw exceptions but it is not usual to refresh bundles at runtime and making requests in same time.
      • getClasses

        public Set<Class<?>> getClasses()
        Overrides:
        getClasses in class javax.ws.rs.core.Application
      • getSingletons

        public Set<Object> getSingletons()
        Overrides:
        getSingletons in class javax.ws.rs.core.Application