Class StaticResourceVersion

  • All Implemented Interfaces:
    IResourceVersion

    public class StaticResourceVersion
    extends java.lang.Object
    implements IResourceVersion
    provides a static version string for all package resources
    Since:
    1.5
    Author:
    Peter Ertl
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticResourceVersion​(java.lang.String version)
      create static version provider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getVersion​(IStaticCacheableResource resource)
      get unique string identifying the version of the resource
      java.util.regex.Pattern getVersionPattern()
      a pattern that matches returned versions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StaticResourceVersion

        public StaticResourceVersion​(java.lang.String version)
        create static version provider
        Parameters:
        version - static version string to deliver for all queries resources
    • Method Detail

      • getVersion

        public java.lang.String getVersion​(IStaticCacheableResource resource)
        Description copied from interface: IResourceVersion
        get unique string identifying the version of the resource
        Specified by:
        getVersion in interface IResourceVersion
        Parameters:
        resource - cacheable resource
        Returns:
        unique version string or null if version string could not be calculated
      • getVersionPattern

        public java.util.regex.Pattern getVersionPattern()
        Description copied from interface: IResourceVersion
        a pattern that matches returned versions
        Specified by:
        getVersionPattern in interface IResourceVersion
        Returns:
        a pattern or null if no pattern is available