Package org.faktorips.runtime
Class ClassloaderRuntimeRepositoryManager
- java.lang.Object
-
- org.faktorips.runtime.internal.AbstractRuntimeRepositoryManager
-
- org.faktorips.runtime.ClassloaderRuntimeRepositoryManager
-
- All Implemented Interfaces:
IRuntimeRepositoryManager
public class ClassloaderRuntimeRepositoryManager extends AbstractRuntimeRepositoryManager
This is aIRuntimeRepositoryManagerfor theClassloaderRuntimeRepository. You do not really need aIRuntimeRepositoryManagerforClassloaderRuntimeRepositoryand in fact this manager always return the sameIRuntimeRepository.Use this
IRuntimeRepositoryManagerif you think about changing the runtime repository to another e.g.DetachedContentRuntimeRepositorythat need to use aIRuntimeRepositoryManagerlater.- Author:
- dirmeier
-
-
Constructor Summary
Constructors Constructor Description ClassloaderRuntimeRepositoryManager(java.lang.ClassLoader classLoader, java.lang.String basePackage, java.lang.String pathToToc)The constructor needs all the information to create aClassloaderRuntimeRepository
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IRuntimeRepositorycreateNewRuntimeRepository()Creates 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 Detail
-
ClassloaderRuntimeRepositoryManager
public ClassloaderRuntimeRepositoryManager(java.lang.ClassLoader classLoader, java.lang.String basePackage, java.lang.String pathToToc)The constructor needs all the information to create aClassloaderRuntimeRepository
-
-
Method Detail
-
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
-
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
-
-