Class ApplicationFragment


  • public class ApplicationFragment
    extends javax.ws.rs.core.Application
    A wrapper for a JAX-RS application fragment declared in manifest. The fragment application will be added to the target host application.
    Author:
    Bogdan Stefanescu
    • Field Detail

      • hostName

        protected final String hostName
      • bundle

        protected final org.osgi.framework.Bundle bundle
      • appClass

        protected String appClass
    • Constructor Detail

      • ApplicationFragment

        public ApplicationFragment​(org.osgi.framework.Bundle bundle,
                                   String appClass)
      • ApplicationFragment

        public ApplicationFragment​(org.osgi.framework.Bundle bundle,
                                   String appClass,
                                   String host)
      • ApplicationFragment

        public ApplicationFragment​(org.osgi.framework.Bundle bundle,
                                   String appClass,
                                   Map<String,​String> attrs)
    • Method Detail

      • getApplication

        public javax.ws.rs.core.Application getApplication()
      • createApp

        protected void createApp()
      • reload

        public void reload()
      • getBundle

        public org.osgi.framework.Bundle getBundle()
      • getHostName

        public String getHostName()
      • get

        public javax.ws.rs.core.Application get()
      • 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