Class MapJobRegistry

    • Constructor Summary

      Constructors 
      ConstructorDescription
      MapJobRegistry() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      JobgetJob​(java.lang.String name)
      Locates a Job at runtime.
      java.util.Set<java.lang.String>getJobNames()
      Provides an unmodifiable view of the job names.
      voidregister​(JobFactory jobFactory)
      Registers a Job at runtime.
      voidunregister​(java.lang.String name)
      Unregisters a previously registered Job.
      • Methods inherited from class java.lang.Object

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

      • MapJobRegistry

        public MapJobRegistry()
    • Method Detail

      • unregister

        public void unregister​(java.lang.String name)
        Description copied from interface: JobRegistry
        Unregisters a previously registered Job. If it was not previously registered there is no error.
        Specified by:
        unregister in interface JobRegistry
        Parameters:
        name - the Job to unregister.
      • getJob

        public Job getJob​(java.lang.String name)
                   throws NoSuchJobException
        Description copied from interface: JobLocator
        Locates a Job at runtime.
        Specified by:
        getJob in interface JobLocator
        Parameters:
        name - the name of the Job which should be unique
        Returns:
        a Job identified by the given name
        Throws:
        NoSuchJobException - if the required configuration can not be found.
      • getJobNames

        public java.util.Set<java.lang.String> getJobNames()
        Provides an unmodifiable view of the job names.
        Specified by:
        getJobNames in interface ListableJobLocator
        Returns:
        a collection of String. Empty if none are registered.