Class DevRepository

java.lang.Object
com.zfabrik.dev.local.DevRepository

public abstract class DevRepository extends Object
public interface of dev repo.
  • Field Details

    • instance

      protected static volatile DevRepository instance
    • PROP_PROJECT

      public static final String PROP_PROJECT
      Property to be specified in the component descriptor to identify the associated project for the case of a component level check out.
      See Also:
      Constant Field Values
    • LOCAL_WORKSPACE

      public static final String LOCAL_WORKSPACE
      System property holding a comma separated list of path names (relative to the current working folder of the z2 process)
      See Also:
      Constant Field Values
    • LOCAL_DEPTH

      public static final String LOCAL_DEPTH
      Search depths for armed modules (those that have a LOCAL file). Level 1 is the workspace folder, Level 2 adds folders in the workspace folders and so on. Defaults to 3. Can be set on the dev repo component or as system property overriding the former.
      See Also:
      Constant Field Values
  • Constructor Details

    • DevRepository

      public DevRepository()
  • Method Details

    • instance

      public static DevRepository instance()
    • getUpdated

      public abstract long getUpdated()
      retrieve id of a current update, or zero if there was none
      Returns:
    • resetUpdated

      public abstract void resetUpdated(long up)
      should be same update key as retrieved from getUpdated()
      Parameters:
      up -
    • releaseDB

      public abstract void releaseDB(long rev)
      drop current db (and reload on next demand) if older than rev
    • preInvalidation

      public abstract void preInvalidation(ISynchronization sync)
      update db and derive invalidations
      Parameters:
      sync -
    • getWorkspaces

      public static Collection<Path> getWorkspaces()
      Retrieve all currently set workspace folders