Class AbstractFileSystemComponentRepository

java.lang.Object
com.zfabrik.components.provider.util.AbstractExtComponentRepository<RootBoundFSCRComponent,MultiRootFSComponentRepositoryDB>
com.zfabrik.components.provider.fs.AbstractFileSystemComponentRepository
All Implemented Interfaces:
com.zfabrik.components.provider.IComponentsRepository, com.zfabrik.util.sync.ISynchronizer

public class AbstractFileSystemComponentRepository extends com.zfabrik.components.provider.util.AbstractExtComponentRepository<RootBoundFSCRComponent,MultiRootFSComponentRepositoryDB>
An abstract component repository implementation over a file system style storage. The defining characteristics is that there is no simpler way to determine some last modified information than a scan for last modified time stamps (up to some depths) over the repository and that scanning is acceptably fast.

  • Nested Class Summary

    Nested classes/interfaces inherited from class com.zfabrik.components.provider.util.AbstractExtComponentRepository

    com.zfabrik.components.provider.util.AbstractExtComponentRepository.Repo, com.zfabrik.components.provider.util.AbstractExtComponentRepository.RepoMBean
  • Field Summary

    Fields inherited from class com.zfabrik.components.provider.util.AbstractExtComponentRepository

    ALL

    Fields inherited from interface com.zfabrik.components.provider.IComponentsRepository

    COMPONENT_REPO_IMPLEMENTATION, COMPONENT_REPO_MODE, COMPONENT_REPO_MODE_RELAXED, COMPONENT_REPO_MODE_STRICT

    Fields inherited from interface com.zfabrik.util.sync.ISynchronizer

    PRIO, TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AbstractFileSystemComponentRepository(String name, int prio, int checkDepth)
     
    AbstractFileSystemComponentRepository(String name, int prio, int checkDepth, boolean autoConfigure)
    Constructor leaving a choice whether the repo completes configuration in the constructor (defaults to true with the other constructors).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Provide all resources for a component into a given folder
     
    The FSCR is scanning at startup always completely.
    void
    Set roots within repo.
     

    Methods inherited from class com.zfabrik.components.provider.util.AbstractExtComponentRepository

    as, checkOfflineMode, complete, configure, configure, configure, findComponents, getCacheRoot, getComponent, getContext, getDB, getExpectedConfiguration, getModules, getName, getRevision, getRevision, getURL, has, isRelaxedMode, preInvalidation, preInvalidation, retrieve, setEvictionDelay, start, stop, test_setContext, test_setDb, test_setInited

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.zfabrik.components.provider.IComponentsRepository

    findComponents, getComponent, getModules, getRevision, retrieve
  • Constructor Details

    • AbstractFileSystemComponentRepository

      public AbstractFileSystemComponentRepository(String name, int prio, int checkDepth)
    • AbstractFileSystemComponentRepository

      public AbstractFileSystemComponentRepository(String name, int prio, int checkDepth, boolean autoConfigure)
      Constructor leaving a choice whether the repo completes configuration in the constructor (defaults to true with the other constructors). If not chosen, the AbstractExtComponentRepository.configure(int) method needs to be called explicitely before going into service. This may be useful if AbstractExtComponentRepository.getExpectedConfiguration() is used with non-default values or other configuration is changed.
    • AbstractFileSystemComponentRepository

      public AbstractFileSystemComponentRepository(String name, int prio)
  • Method Details