org.faktorips.runtime
Class ClassloaderRuntimeRepositoryManager

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

public class ClassloaderRuntimeRepositoryManager
extends AbstractRuntimeRepositoryManager

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
ClassloaderRuntimeRepositoryManager(ClassLoader classLoader, String basePackage, String pathToToc)
          The constructor needs all the information to create a ClassloaderRuntimeRepository
 
Method Summary
protected  IRuntimeRepository createNewRuntimeRepository()
          Creates a new repository.
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, getActualRuntimeRepository, getAllReferencedRepositoryManagers, getCurrentRuntimeRepository, getDirectlyReferencedRepositoryManagers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassloaderRuntimeRepositoryManager

public ClassloaderRuntimeRepositoryManager(ClassLoader classLoader,
                                           String basePackage,
                                           String pathToToc)
The constructor needs all the information to create a ClassloaderRuntimeRepository

Method Detail

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

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


Copyright © 2015. All rights reserved.