|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectservices.DependenciesService
class DependenciesService
Provides a wrapper for some Dependencies related functionality.
Property Summary | |
---|---|
def |
yamService
The YamService |
Constructor Summary | |
DependenciesService()
|
Method Summary | |
---|---|
Set
|
created(Wiki wiki, YamFile yam)
Update dependencies for new YAM files. |
Set
|
created(Wiki wiki, File file)
Update dependencies for new files. |
Dependencies
|
get(Wiki wiki)
Get the Dependencies for a wiki. |
Set
|
modified(Wiki wiki, YamFile yam)
Update dependencies for modified YAM files. |
void
|
regenerate(Wiki wiki)
Regenerate all Dependencies for a wiki. |
void
|
serialize(Wiki wiki)
Serialize the given wiki |
void
|
setSerializationDirectory(File f)
Set the directory to which Dependencies will be serialised |
void
|
setSerializationFilePrefix(String prefix)
Set the prefix to use for the serialized dependencies files |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
def yamService
Constructor Detail |
---|
DependenciesService()
Method Detail |
---|
Set created(Wiki wiki, YamFile yam)
Set created(Wiki wiki, File file)
Dependencies get(Wiki wiki)
Set modified(Wiki wiki, YamFile yam)
void regenerate(Wiki wiki)
Regenerate all Dependencies for a wiki. All existing link and include dependencies for the parameter wiki will be discarded, and new link and include dependencies created for every yam file in the wiki. This method exists because it is inevitable that the recorded link and include dependencies will sometimes get out of synch with the reality of links and includes in the yam files. For example, if someone edits a yam file on disk rather than through the wiki interface. Or, if someone changes the wiki sandbox. Being out of synch will not cause serious problems, but it needs to be periodically resolved, e.g. through an interface option to regenerate, or through a job run at a regular interval.
void serialize(Wiki wiki)
void setSerializationDirectory(File f)
void setSerializationFilePrefix(String prefix)
Groovy Documentation