Class CommonModelRegistry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static CommonModelRegistry _instance  
      (package private) org.osgi.framework.BundleContext ctx  
      (package private) org.osgi.service.packageadmin.PackageAdmin pkgAdmin  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommonModelRegistry()  
    • Field Detail

      • ctx

        org.osgi.framework.BundleContext ctx
      • pkgAdmin

        org.osgi.service.packageadmin.PackageAdmin pkgAdmin
    • Constructor Detail

      • CommonModelRegistry

        private CommonModelRegistry()
    • Method Detail

      • initialize

        void initialize​(org.osgi.framework.BundleContext ctx,
                        org.osgi.service.packageadmin.PackageAdmin pkgAdmin)
      • canLoadResources

        public boolean canLoadResources()
      • loadModel

        public void loadModel​(ParsingContext ctx,
                              java.lang.String className)
      • openResourceStream

        public java.io.InputStream openResourceStream​(java.lang.String className)
                                               throws java.io.IOException
        Description copied from interface: ResourceLocator
        Opens and input stream for the resources identified by the parameter name.
        Specified by:
        openResourceStream in interface ResourceLocator
        Parameters:
        className - the resource identification
        Returns:
        an input stream, or null if the name does not exist
        Throws:
        java.io.IOException - on i/o error
      • getResource

        public java.net.URL getResource​(java.lang.String className)
        Description copied from interface: ResourceLocator
        Retrieves the URL given a resource name
        Specified by:
        getResource in interface ResourceLocator
        Returns:
        the resource URL, or null if not found