Package ch.grengine.sources
Interface Sources
- All Known Implementing Classes:
BaseSources,CompositeSources,DirBasedSources,FixedSetSources
public interface Sources
Interface for a set of
Source that can change with time.
A typical example is a directory that contains Groovy scripts
which can be modified, deleted and created. (This use case
is implemented by DirBasedSources.)
- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Method Summary
Modifier and TypeMethodDescriptiongets the compiler factory that should be used to compile the sources.longupdates the source set, if necessary, and returns the last modified of when last found changed.getName()gets the name of the sources.updates the source set, if necessary, and returns it.toString()returns a string suitable for logging.
-
Method Details
-
getSourceSet
updates the source set, if necessary, and returns it.- Returns:
- source set
- Since:
- 1.0
-
getLastModified
long getLastModified()updates the source set, if necessary, and returns the last modified of when last found changed.You should not rely on this number to increase monotonically or even to represent an actual date and time, but instead consider the sources changed each time this method returns a different value.
- Returns:
- last modified
- Since:
- 1.0
-
getName
String getName()gets the name of the sources.- Returns:
- name of the sources
- Since:
- 1.0
-
getCompilerFactory
CompilerFactory getCompilerFactory()gets the compiler factory that should be used to compile the sources.- Returns:
- compiler factory
- Since:
- 1.0
-
toString
String toString()returns a string suitable for logging.
-