org.faktorips.runtime.productdataprovider
Class DetachedContentRuntimeRepositoryManager

java.lang.Object
  extended by org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
      extended by org.faktorips.runtime.productdataprovider.DetachedContentRuntimeRepositoryManager
All Implemented Interfaces:
IRuntimeRepositoryManager

public class DetachedContentRuntimeRepositoryManager
extends AbstractRuntimeRepositoryManager

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:
DetachedContentRuntimeRepository

Nested Class Summary
static class DetachedContentRuntimeRepositoryManager.Builder
           
 
Method Summary
protected  IRuntimeRepository createNewRuntimeRepository()
          Creates a new repository.
 IDetachedContentRuntimeRepository getActualRuntimeRepository()
          Deprecated. since 3.9.0: The method name was a false translation from German. The correct method is called getCurrentRuntimeRepository()
 IDetachedContentRuntimeRepository getCurrentRuntimeRepository()
          Call a modification check on the product data provider.
protected  boolean isRepositoryUpToDate(IRuntimeRepository actualRuntimeRepository)
          This method checks whether the IRuntimeRepository is up to date or not.
 
Methods inherited from class org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
addDirectlyReferencedManager, getAllReferencedRepositoryManagers, getDirectlyReferencedRepositoryManagers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 called getCurrentRuntimeRepository()

Call a modification check on the product data provider. If there are any changes in the product data, this method creates a new IRuntimeRepository. If there are no changes this method simply returns the existing one.

Specified by:
getActualRuntimeRepository in interface IRuntimeRepositoryManager
Overrides:
getActualRuntimeRepository in class AbstractRuntimeRepositoryManager

getCurrentRuntimeRepository

public IDetachedContentRuntimeRepository getCurrentRuntimeRepository()
Description copied from class: AbstractRuntimeRepositoryManager
Call a modification check on the product data provider. If there are any changes in the product data, this method creates a new IRuntimeRepository. 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 null as its current repository, this direct referenced repository will be ignored.

Specified by:
getCurrentRuntimeRepository in interface IRuntimeRepositoryManager
Overrides:
getCurrentRuntimeRepository in class AbstractRuntimeRepositoryManager

isRepositoryUpToDate

protected boolean isRepositoryUpToDate(IRuntimeRepository actualRuntimeRepository)
Description copied from class: AbstractRuntimeRepositoryManager
This method checks whether the IRuntimeRepository is up to date or not. If this method returns false, a new repository have to be created

Specified by:
isRepositoryUpToDate in class AbstractRuntimeRepositoryManager
Parameters:
actualRuntimeRepository - The actual runtime repository that have to be checked
Returns:
true if the repository is still up to date

createNewRuntimeRepository

protected IRuntimeRepository createNewRuntimeRepository()
Description copied from class: AbstractRuntimeRepositoryManager
Creates a new repository. This method have to create thre repository but do NOT have to connect the repository to the other referenced repositories.

Specified by:
createNewRuntimeRepository in class AbstractRuntimeRepositoryManager
Returns:
A newly created IRuntimeRepository


Copyright © 2015. All rights reserved.