Package org.faktorips.runtime
Class ClassloaderRuntimeRepositoryManager
java.lang.Object
org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
org.faktorips.runtime.ClassloaderRuntimeRepositoryManager
- All Implemented Interfaces:
IRuntimeRepositoryManager
This is a
IRuntimeRepositoryManager for the ClassloaderRuntimeRepository. You do
not really need a IRuntimeRepositoryManager for ClassloaderRuntimeRepository and
in fact this manager always return the same IRuntimeRepository.
Use this IRuntimeRepositoryManager if you think about changing the runtime repository to
another e.g. DetachedContentRuntimeRepository that need to use a
IRuntimeRepositoryManager later.
- Author:
- dirmeier
-
Constructor Summary
ConstructorsConstructorDescriptionClassloaderRuntimeRepositoryManager(ClassLoader classLoader, String basePackage, String pathToToc) The constructor needs all the information to create aClassloaderRuntimeRepository -
Method Summary
Modifier and TypeMethodDescriptionprotected IRuntimeRepositoryCreates a new repository.protected booleanisRepositoryUpToDate(IRuntimeRepository actualRuntimeRepository) Checks whether theIRuntimeRepositoryis up to date or not.Methods inherited from class org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
addDirectlyReferencedManager, getActualRuntimeRepository, getAllReferencedRepositoryManagers, getCurrentRuntimeRepository, getDirectlyReferencedRepositoryManagers
-
Constructor Details
-
ClassloaderRuntimeRepositoryManager
public ClassloaderRuntimeRepositoryManager(ClassLoader classLoader, String basePackage, String pathToToc) The constructor needs all the information to create aClassloaderRuntimeRepository
-
-
Method Details
-
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
-
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
-