Interface ConfigurableService<T>
-
- All Superinterfaces:
FrameworkSupportService
- All Known Implementing Classes:
ResourceModelSourceService
public interface ConfigurableService<T> extends FrameworkSupportService
ConfigurableService can produce a provider instance of a certain type using configuration input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloseableProvider<T>
getCloseableProviderForConfiguration(java.lang.String type, java.util.Properties configuration)
Return a provider of type T which can be closedT
getProviderForConfiguration(java.lang.String type, java.util.Properties configuration)
-
Methods inherited from interface com.dtolabs.rundeck.core.common.FrameworkSupportService
getName
-
-
-
-
Method Detail
-
getProviderForConfiguration
T getProviderForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
- Parameters:
type
- provider nameconfiguration
- configuration properties- Returns:
- a ResourceModelSource of a give type with a given configuration
- Throws:
ExecutionServiceException
- on error
-
getCloseableProviderForConfiguration
CloseableProvider<T> getCloseableProviderForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
Return a provider of type T which can be closed- Parameters:
type
- plugin typeconfiguration
- configuration properties- Returns:
- closeable provider of T
- Throws:
ExecutionServiceException
-
-