Interface IJobUnitRepository


public interface IJobUnitRepository
Repository of IJobUnitFactorys.
Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
  • Method Details

    • getJobUnitFactory

      IJobUnitFactory getJobUnitFactory(String name)
      Return given factory.
      Parameters:
      name - factory name
      Returns:
      IJobUnitFactory or null
      Throws:
      IllegalArgumentException - if name is null
    • getAvailableFactoryNames

      Collection getAvailableFactoryNames()
      Return names of all available factories.
      Returns:
      Collection of String names (not null)
    • registerJobUnitFactory

      void registerJobUnitFactory(String name, IJobUnitFactory factory)
      Register factory with given name.

      Factory may have more than one name. Registering another factory with already used name results in unregistration of previously registered factory.

      Parameters:
      name - factory name
      factory - factory
      Throws:
      IllegalArgumentException - if name is null
      IllegalArgumentException - if factory is null
    • unregisterJobUnitFactory

      void unregisterJobUnitFactory(String name)
      Unregister factory with given name.

      It is not error to try to unregister unknown factory.

      Parameters:
      name - factory name
      Throws:
      IllegalArgumentException - if name is null