Package com.polarion.platform.jobs
Interface IJobUnitRepository
public interface IJobUnitRepository
Repository of
IJobUnitFactorys.- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionReturn names of all available factories.getJobUnitFactory(String name) Return given factory.voidregisterJobUnitFactory(String name, IJobUnitFactory factory) Register factory with given name.voidUnregister factory with given name.
-
Method Details
-
getJobUnitFactory
Return given factory.- Parameters:
name- factory name- Returns:
IJobUnitFactoryornull- Throws:
IllegalArgumentException- if name isnull
-
getAvailableFactoryNames
Collection getAvailableFactoryNames()Return names of all available factories.- Returns:
CollectionofStringnames (notnull)
-
registerJobUnitFactory
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 namefactory- factory- Throws:
IllegalArgumentException- if name isnullIllegalArgumentException- if factory isnull
-
unregisterJobUnitFactory
Unregister factory with given name.It is not error to try to unregister unknown factory.
- Parameters:
name- factory name- Throws:
IllegalArgumentException- if name isnull
-