Package com.zfabrik.dev.local
Class DevRepository
java.lang.Object
com.zfabrik.dev.local.DevRepository
public interface of dev repo.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static DevRepository
static String
Search depths for armed modules (those that have a LOCAL file).static String
System property holding a comma separated list of path names (relative to the current working folder of the z2 process)static String
Property to be specified in the component descriptor to identify the associated project for the case of a component level check out. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract long
retrieve id of a current update, or zero if there was nonestatic Collection<Path>
Retrieve all currently set workspace foldersstatic DevRepository
instance()
abstract void
preInvalidation(ISynchronization sync)
update db and derive invalidationsabstract void
releaseDB(long rev)
drop current db (and reload on next demand) if older than revabstract void
resetUpdated(long up)
should be same update key as retrieved fromgetUpdated()
-
Field Details
-
instance
-
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
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
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
-
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 fromgetUpdated()
- Parameters:
up
-
-
releaseDB
public abstract void releaseDB(long rev)drop current db (and reload on next demand) if older than rev -
preInvalidation
update db and derive invalidations- Parameters:
sync
-
-
getWorkspaces
Retrieve all currently set workspace folders
-