Class AbstractClassLoadingRuntimeRepository

    • Constructor Detail

      • AbstractClassLoadingRuntimeRepository

        public AbstractClassLoadingRuntimeRepository​(java.lang.String name,
                                                     ICacheFactory cacheFactory,
                                                     java.lang.ClassLoader cl)
        Parameters:
        name - The name of the runtime repository
        cacheFactory - the cache factory used by this runtime repository
        cl - the ClassLoader used to load the classes
    • Method Detail

      • createProductComponentInstance

        protected ProductComponent createProductComponentInstance​(java.lang.String implementationClassName,
                                                                  java.lang.String ipsObjectId,
                                                                  java.lang.String kindId,
                                                                  java.lang.String versionId)
      • getAllProductComponentsInternal

        protected <T extends IProductComponent> void getAllProductComponentsInternal​(java.lang.Class<T> productCmptClass,
                                                                                     java.util.List<T> result)
        Override the default implementation for better performance. The default implementation instantiates all product component before using the class filter. In this implementation we use the information in the toc to filter the list of product components before instantiation.
        Overrides:
        getAllProductComponentsInternal in class AbstractRuntimeRepository
        Parameters:
        productCmptClass - The class you want to search product components for
        result - adding the found product components to result list
      • getDocumentElement

        protected abstract org.w3c.dom.Element getDocumentElement​(ProductCmptTocEntry tocEntry)
        This method returns the xml element of the product component identified by the tocEntry
      • getDocumentElement

        protected abstract org.w3c.dom.Element getDocumentElement​(GenerationTocEntry tocEntry)
        This method returns the xml element of the product component generation identified by the tocEntry
      • getDocumentElement

        protected abstract org.w3c.dom.Element getDocumentElement​(TestCaseTocEntry tocEntry)
        This method returns the xml element of the test case identified by the tocEntry
      • getProductComponentGenerationImplClass

        protected abstract java.lang.String getProductComponentGenerationImplClass​(GenerationTocEntry tocEntry)
        This method returns the name of the product component generation implementation class identified by the tocEntry. This could either be an implementation class using the formula evaluation or an implementation class containing the compiled formulas.
      • getXmlAsStream

        protected abstract java.io.InputStream getXmlAsStream​(EnumContentTocEntry tocEntry)
        Returns the XML data for the specified tocEntry as InputStream
        Parameters:
        tocEntry - Specifying the requested EnumContent
        Returns:
        An InputStream containing the XML data - should not return null!
        Throws:
        java.lang.RuntimeException - in case of any exception do not return null but an accurate RuntimeException
      • getXmlAsStream

        protected abstract java.io.InputStream getXmlAsStream​(TableContentTocEntry tocEntry)
        Returns the XML data for the specified tocEntry as InputStream
        Parameters:
        tocEntry - Specifying the requested TableContent
        Returns:
        An InputStream containing the XML data - should not return null!
        Throws:
        java.lang.RuntimeException - in case of any exception do not return null but an accurate RuntimeException
      • getDocumentElement

        protected abstract <T> org.w3c.dom.Element getDocumentElement​(CustomTocEntryObject<T> tocEntry)
        This method returns the xml element of the product component identified by the tocEntry