Class DetachedContentRuntimeRepositoryManager
java.lang.Object
org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
org.faktorips.runtime.productdataprovider.DetachedContentRuntimeRepositoryManager
- All Implemented Interfaces:
IRuntimeRepositoryManager
The
DetachedContentRuntimeRepositoryManager manages the access to the
DetachedContentRuntimeRepository. To get a runtime repository that provides the actual
product data you have to call getActualRuntimeRepository().
To create a new DetachedContentRuntimeRepositoryManager use the internal DetachedContentRuntimeRepositoryManager.Builder.
- Author:
- dirmeier
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprotected IRuntimeRepositoryCreates a new repository.Deprecated.since 3.9.0: The method name was a false translation from German.Call a modification check on the product data provider.protected booleanisRepositoryUpToDate(IRuntimeRepository actualRuntimeRepository) Checks whether theIRuntimeRepositoryis up to date or not.Methods inherited from class org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
addDirectlyReferencedManager, getAllReferencedRepositoryManagers, getDirectlyReferencedRepositoryManagers
-
Method Details
-
getActualRuntimeRepository
Deprecated.since 3.9.0: The method name was a false translation from German. The correct method is calledgetCurrentRuntimeRepository()Call a modification check on the product data provider. If there are any changes in the product data, this method creates a newIRuntimeRepository. If there are no changes this method simply returns the existing one.- Specified by:
getActualRuntimeRepositoryin interfaceIRuntimeRepositoryManager- Overrides:
getActualRuntimeRepositoryin classAbstractRuntimeRepositoryManager
-
getCurrentRuntimeRepository
Description copied from interface:IRuntimeRepositoryManagerCall a modification check on the product data provider. If there are any changes in the product data, this method creates a newIRuntimeRepository. If there are no changes this method simply returns the existing one. The current runtime repository can be null.Every direct referenced manger will be asked for it current repository. If any direct referenced manager returns
nullas its current repository, this direct referenced repository will be ignored.- Specified by:
getCurrentRuntimeRepositoryin interfaceIRuntimeRepositoryManager- Overrides:
getCurrentRuntimeRepositoryin classAbstractRuntimeRepositoryManager
-
isRepositoryUpToDate
Description copied from class:AbstractRuntimeRepositoryManagerChecks whether theIRuntimeRepositoryis up to date or not. If this method returnsfalse, a new repository has to be created.- Specified by:
isRepositoryUpToDatein classAbstractRuntimeRepositoryManager- Parameters:
actualRuntimeRepository- the runtime repository that has to be checked- Returns:
- whether the repository is still up to date
-
createNewRuntimeRepository
Description copied from class:AbstractRuntimeRepositoryManagerCreates a new repository. This method has to create the repository but must NOT connect the repository to the other referenced repositories.- Specified by:
createNewRuntimeRepositoryin classAbstractRuntimeRepositoryManager- Returns:
- A newly created
IRuntimeRepository
-