Class DetachedContentRuntimeRepositoryManager
- java.lang.Object
-
- org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
-
- org.faktorips.runtime.productdataprovider.DetachedContentRuntimeRepositoryManager
-
- All Implemented Interfaces:
IRuntimeRepositoryManager
public class DetachedContentRuntimeRepositoryManager extends AbstractRuntimeRepositoryManager
TheDetachedContentRuntimeRepositoryManagermanages the access to theDetachedContentRuntimeRepository. To get a runtime repository that provides the actual product data you have to callgetActualRuntimeRepository().To create a new
DetachedContentRuntimeRepositoryManageruse the internalDetachedContentRuntimeRepositoryManager.Builder.- Author:
- dirmeier
- See Also:
DetachedContentRuntimeRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDetachedContentRuntimeRepositoryManager.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected IRuntimeRepositorycreateNewRuntimeRepository()Creates a new repository.IDetachedContentRuntimeRepositorygetActualRuntimeRepository()Deprecated.since 3.9.0: The method name was a false translation from German.IDetachedContentRuntimeRepositorygetCurrentRuntimeRepository()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 Detail
-
getActualRuntimeRepository
@Deprecated public IDetachedContentRuntimeRepository 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
public IDetachedContentRuntimeRepository 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
protected boolean isRepositoryUpToDate(IRuntimeRepository actualRuntimeRepository)
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
protected IRuntimeRepository 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
-
-