public abstract class AbstractClassLoadingRuntimeRepository extends AbstractTocBasedRuntimeRepository
AbstractTocBasedRuntimeRepository and the concrete runtime repositories. This abstract
layer is responsible for loading the classes and instantiates the objects. The content of the
objects - the concrete data - is provided by the concrete implementation.| Constructor and Description |
|---|
AbstractClassLoadingRuntimeRepository(String name,
ICacheFactory cacheFactory,
ClassLoader cl) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
createCustomObject(CustomTocEntryObject<T> tocEntry) |
protected <T> List<T> |
createEnumValues(EnumContentTocEntry tocEntry,
Class<T> enumClass) |
protected IProductComponent |
createProductCmpt(ProductCmptTocEntry tocEntry) |
protected IProductComponentGeneration |
createProductCmptGeneration(GenerationTocEntry tocEntry) |
protected ProductComponentGeneration |
createProductComponentGenerationInstance(GenerationTocEntry tocEntry,
ProductComponent productCmpt) |
protected ProductComponent |
createProductComponentInstance(String implementationClassName,
String ipsObjectId,
String kindId,
String versionId) |
protected ITable<?> |
createTable(TableContentTocEntry tocEntry)
Creates the table object for the given toc entry.
|
protected IpsTestCaseBase |
createTestCase(TestCaseTocEntry tocEntry,
IRuntimeRepository runtimeRepository)
Creates the test case object for the given toc entry.
|
protected <T extends IProductComponent> |
getAllProductComponentsInternal(Class<T> productCmptClass,
List<T> result)
Override the default implementation for better performance.
|
ClassLoader |
getClassLoader()
Returns the class loader that is used to load Java classes by this repository.
|
protected abstract <T> Element |
getDocumentElement(CustomTocEntryObject<T> tocEntry)
This method returns the xml element of the product component identified by the tocEntry
|
protected abstract Element |
getDocumentElement(GenerationTocEntry tocEntry)
This method returns the xml element of the product component generation identified by the
tocEntry
|
protected abstract Element |
getDocumentElement(ProductCmptTocEntry tocEntry)
This method returns the xml element of the product component identified by the tocEntry
|
protected abstract Element |
getDocumentElement(TestCaseTocEntry tocEntry)
This method returns the xml element of the test case identified by the tocEntry
|
protected abstract String |
getProductComponentGenerationImplClass(GenerationTocEntry tocEntry)
This method returns the name of the product component generation implementation class
identified by the tocEntry.
|
protected ProductVariantRuntimeHelper |
getProductVariantHelper() |
protected abstract InputStream |
getXmlAsStream(EnumContentTocEntry tocEntry)
Returns the XML data for the specified tocEntry as
InputStream |
protected abstract InputStream |
getXmlAsStream(TableContentTocEntry tocEntry)
Returns the XML data for the specified tocEntry as
InputStream |
protected <T> void |
initClRepositoryObject(CustomTocEntryObject<T> tocEntry,
IClRepositoryObject runtimeObject) |
createEnumXmlAdapter, getAllIpsTestCases, getAllModelTypeImplementationClasses, getAllProductComponentIds, getAllProductComponents, getAllProductComponents, getAllTables, getClass, getIpsTestCaseInternal, getIpsTestCasesStartingWith, getLatestProductComponentGenerationInternal, getNextProductComponentGenerationInternal, getNotCachedCustomObject, getNotCachedEnumValues, getNotCachedEnumXmlAdapter, getNotCachedProductComponent, getNotCachedProductComponentGeneration, getNotCachedTable, getNumberOfProductComponentGenerationsInternal, getPreviousProductComponentGenerationInternal, getProductComponentGenerationInternal, getProductComponentGenerations, getProductComponentInternal, getTableInternal, getTableOfContents, initialize, loadTableOfContentsgetAllInternalEnumXmlAdapters, getCustomRuntimeObjectInternal, getEnumValuesInternal, getProductComponentGenerationInternal, getProductComponentInternal, getTableInternal, initCachesaddDirectlyReferencedRepository, addEnumValueLookupService, getAllIpsTestCases, getAllModelTypeImplementationClasses, getAllProductComponentIds, getAllProductComponents, getAllProductComponents, getAllProductComponents, getAllReferencedRepositories, getAllTables, getCustomRuntimeObject, getDirectlyReferencedRepositories, getEnumValue, getEnumValue, getEnumValueLookupService, getEnumValues, getEnumValuesDefinedInType, getExistingProductComponent, getExistingProductComponentGeneration, getFormulaEvaluatorFactory, getIpsTest, getIpsTest, getIpsTestCase, getIpsTestCase, getIpsTestCasesStartingWith, getIpsTestSuite, getIpsTestSuite, getLatestProductComponentGeneration, getModelType, getModelType, getModelType, getName, getNextProductComponentGeneration, getNumberOfProductComponentGenerations, getPreviousProductComponentGeneration, getProductComponent, getProductComponent, getProductComponentGeneration, getProductComponentGenerations, getRuntimeRepositoryLookup, getTable, getTable, newJAXBContext, newJAXBContext, removeEnumValueLookupService, setFormulaEvaluatorFactory, setRuntimeRepositoryLookup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisModifiablepublic AbstractClassLoadingRuntimeRepository(String name, ICacheFactory cacheFactory, ClassLoader cl)
name - The name of the runtime repositorycacheFactory - the cache factory used by this runtime repositorycl - the ClassLoader used to load the classesprotected IProductComponent createProductCmpt(ProductCmptTocEntry tocEntry)
createProductCmpt in class AbstractTocBasedRuntimeRepositoryprotected ProductComponent createProductComponentInstance(String implementationClassName, String ipsObjectId, String kindId, String versionId)
protected <T> List<T> createEnumValues(EnumContentTocEntry tocEntry, Class<T> enumClass)
createEnumValues in class AbstractTocBasedRuntimeRepositoryprotected IProductComponentGeneration createProductCmptGeneration(GenerationTocEntry tocEntry)
createProductCmptGeneration in class AbstractTocBasedRuntimeRepositoryprotected ProductVariantRuntimeHelper getProductVariantHelper()
protected ProductComponentGeneration createProductComponentGenerationInstance(GenerationTocEntry tocEntry, ProductComponent productCmpt)
protected <T extends IProductComponent> void getAllProductComponentsInternal(Class<T> productCmptClass, List<T> result)
getAllProductComponentsInternal in class AbstractRuntimeRepositoryproductCmptClass - The class you want to search product components forresult - adding the found product components to result listprotected ITable<?> createTable(TableContentTocEntry tocEntry)
AbstractTocBasedRuntimeRepositorycreateTable in class AbstractTocBasedRuntimeRepositoryprotected IpsTestCaseBase createTestCase(TestCaseTocEntry tocEntry, IRuntimeRepository runtimeRepository)
AbstractTocBasedRuntimeRepositorycreateTestCase in class AbstractTocBasedRuntimeRepositorypublic ClassLoader getClassLoader()
AbstractRuntimeRepositoryThis default implementation returns the class loader with which this repository class has been loaded.
getClassLoader in interface IRuntimeRepositorygetClassLoader in class AbstractRuntimeRepositoryprotected abstract Element getDocumentElement(ProductCmptTocEntry tocEntry)
protected abstract Element getDocumentElement(GenerationTocEntry tocEntry)
protected abstract Element getDocumentElement(TestCaseTocEntry tocEntry)
protected abstract String getProductComponentGenerationImplClass(GenerationTocEntry tocEntry)
protected abstract InputStream getXmlAsStream(EnumContentTocEntry tocEntry)
InputStreamtocEntry - Specifying the requested EnumContentRuntimeException - in case of any exception do not return null but an accurate
RuntimeExceptionprotected abstract InputStream getXmlAsStream(TableContentTocEntry tocEntry)
InputStreamtocEntry - Specifying the requested TableContentRuntimeException - in case of any exception do not return null but an accurate
RuntimeExceptionprotected <T> T createCustomObject(CustomTocEntryObject<T> tocEntry)
createCustomObject in class AbstractTocBasedRuntimeRepositoryprotected <T> void initClRepositoryObject(CustomTocEntryObject<T> tocEntry, IClRepositoryObject runtimeObject)
protected abstract <T> Element getDocumentElement(CustomTocEntryObject<T> tocEntry)
Copyright © 2019. All rights reserved.