|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.internal.AbstractRuntimeRepository
org.faktorips.runtime.internal.AbstractCachingRuntimeRepository
org.faktorips.runtime.internal.AbstractTocBasedRuntimeRepository
org.faktorips.runtime.internal.AbstractClassLoadingRuntimeRepository
public abstract class AbstractClassLoadingRuntimeRepository
An abstract repository that handles the common stuff between the
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 Summary | |
|---|---|
AbstractClassLoadingRuntimeRepository(String name,
ICacheFactory cacheFactory,
ClassLoader cl)
|
|
| Method Summary | ||
|---|---|---|
protected
|
createCustomObject(CustomTocEntryObject<T> tocEntry)
|
|
protected
|
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
|
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
|
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
|
initClRepositoryObject(CustomTocEntryObject<T> tocEntry,
IClRepositoryObject runtimeObject)
|
|
| Methods inherited from class org.faktorips.runtime.internal.AbstractCachingRuntimeRepository |
|---|
getAllInternalEnumXmlAdapters, getCustomRuntimeObjectInternal, getEnumValuesInternal, getProductComponentGenerationInternal, getProductComponentInternal, getTableInternal, initCaches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.faktorips.runtime.IRuntimeRepository |
|---|
isModifiable |
| Constructor Detail |
|---|
public 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 classes| Method Detail |
|---|
protected IProductComponent createProductCmpt(ProductCmptTocEntry tocEntry)
createProductCmpt in class AbstractTocBasedRuntimeRepository
protected 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)
AbstractTocBasedRuntimeRepository
createTable in class AbstractTocBasedRuntimeRepository
protected IpsTestCaseBase createTestCase(TestCaseTocEntry tocEntry,
IRuntimeRepository runtimeRepository)
AbstractTocBasedRuntimeRepository
createTestCase 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)
InputStream
tocEntry - Specifying the requested EnumContent
RuntimeException - in case of any exception do not return null but an accurate
RuntimeExceptionprotected abstract InputStream getXmlAsStream(TableContentTocEntry tocEntry)
InputStream
tocEntry - Specifying the requested TableContent
RuntimeException - in case of any exception do not return null but an accurate
RuntimeExceptionprotected <T> T createCustomObject(CustomTocEntryObject<T> tocEntry)
createCustomObject in class AbstractTocBasedRuntimeRepository
protected <T> void initClRepositoryObject(CustomTocEntryObject<T> tocEntry,
IClRepositoryObject runtimeObject)
protected abstract <T> Element getDocumentElement(CustomTocEntryObject<T> tocEntry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||