Package com.polarion.platform.jobs
Interface IJobUnitRepository
public interface IJobUnitRepository
Repository of
IJobUnitFactory
s.- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionReturn names of all available factories.getJobUnitFactory
(String name) Return given factory.void
registerJobUnitFactory
(String name, IJobUnitFactory factory) Register factory with given name.void
Unregister factory with given name.
-
Method Details
-
getJobUnitFactory
Return given factory.- Parameters:
name
- factory name- Returns:
IJobUnitFactory
ornull
- Throws:
IllegalArgumentException
- if name isnull
-
getAvailableFactoryNames
Collection getAvailableFactoryNames()Return names of all available factories.- Returns:
Collection
ofString
names (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 isnull
IllegalArgumentException
- 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
-