Class EmptyJobContext

  • All Implemented Interfaces:
    JobContext

    public class EmptyJobContext
    extends Object
    implements JobContext
    An empty implementation of JobContext. All methods implementing JobContext do as little as possible as allowed by the specification of JobContext. You may want to subclass this class instead of implementing JobContext directly to make your subclass cope with new methods in JobContext.
    • Constructor Detail

      • EmptyJobContext

        public EmptyJobContext()
    • Method Detail

      • supportsMessage

        public boolean supportsMessage()
        This default implementation always returns false.
        Specified by:
        supportsMessage in interface JobContext
      • setMessage

        public void setMessage​(String message)
        This default implementation does nothing.
        Specified by:
        setMessage in interface JobContext
      • supportsProgress

        public boolean supportsProgress()
        This default implementation always returns false.
        Specified by:
        supportsProgress in interface JobContext
      • incrementProgress

        public void incrementProgress​(int delta)
        This default implementation does nothing.
        Specified by:
        incrementProgress in interface JobContext
      • supportsCompleteness

        public boolean supportsCompleteness()
        This default implementation always returns false.
        Specified by:
        supportsCompleteness in interface JobContext
      • setCompleteness

        public void setCompleteness​(double completeness)
        This default implementation does nothing.
        Specified by:
        setCompleteness in interface JobContext