Package org.faktorips.runtime
Interface IRuntimeRepositoryManager
-
- All Known Implementing Classes:
AbstractRuntimeRepositoryManager,ClassloaderRuntimeRepositoryManager,DetachedContentRuntimeRepositoryManager
public interface IRuntimeRepositoryManagerTheIRuntimeRepositoryManageris able to provide aIRuntimeRepository. The manager is used in scenarios where product data could change over time. In this case, the repository would throw exceptions because product data is out-dated. By calling the methodgetActualRuntimeRepository()the client gets a newIRuntimeRepositorythat is able to work with the actual data.If you use a set of referenced repositories you have to connect your
IRuntimeRepositoryManagers instead of the repositories. That enables the manager to set all the necessary references after creating a new repository.- Author:
- dirmeier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddDirectlyReferencedManager(IRuntimeRepositoryManager manager)Use this method to add a referencedIRuntimeRepositoryManager.IRuntimeRepositorygetActualRuntimeRepository()Deprecated.since 3.9.0: The method name was a false translation from German.java.util.List<IRuntimeRepositoryManager>getAllReferencedRepositoryManagers()Collect all referenced manager.IRuntimeRepositorygetCurrentRuntimeRepository()Call a modification check on the product data provider.java.util.List<IRuntimeRepositoryManager>getDirectlyReferencedRepositoryManagers()Get the list of direct references managers.
-
-
-
Method Detail
-
getActualRuntimeRepository
@Deprecated IRuntimeRepository 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.
-
getCurrentRuntimeRepository
IRuntimeRepository getCurrentRuntimeRepository()
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. 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.
-
addDirectlyReferencedManager
void addDirectlyReferencedManager(IRuntimeRepositoryManager manager)
Use this method to add a referencedIRuntimeRepositoryManager. TheIRuntimeRepositoryreturned bygetCurrentRuntimeRepository()asks all references managers for their repositories and adding the references.- Parameters:
manager- The manager to connect with this manager
-
getDirectlyReferencedRepositoryManagers
java.util.List<IRuntimeRepositoryManager> getDirectlyReferencedRepositoryManagers()
Get the list of direct references managers.- Returns:
- All directly referenced managers
-
getAllReferencedRepositoryManagers
java.util.List<IRuntimeRepositoryManager> getAllReferencedRepositoryManagers()
Collect all referenced manager. This request all referenced managers from the direct references managers recursively.- Returns:
- A list of all
IRuntimeRepositoryManagerthat are referenced directly or indirectly
-
-