Package com.dtolabs.rundeck.core.plugins
Class PluggableProviderRegistryService<T>
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService<T>
-
- com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService<T>
-
- com.dtolabs.rundeck.core.plugins.PluggableProviderRegistryService<T>
-
- All Implemented Interfaces:
FrameworkSupportService,ProviderService<T>,DescribableService,PluggableProviderService<T>,PluggableService<T>,ProviderRegistryService<T>
- Direct Known Subclasses:
NodeSpecifiedService,ResourceFormatGeneratorService,ResourceFormatParserService,ResourceModelSourceService
public abstract class PluggableProviderRegistryService<T> extends BaseProviderRegistryService<T> implements PluggableProviderService<T>
Extends BaseProviderRegistryService to support loading providers via plugins if not found in the registry.
-
-
Field Summary
-
Fields inherited from class com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService
framework
-
Fields inherited from class com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService
instanceregistry, registry
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPluggableProviderRegistryService(Framework framework)PluggableProviderRegistryService(Framework framework, boolean cacheInstances)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableProvider<T>closeableProviderOfType(java.lang.String providerName)java.util.List<ProviderIdent>listProviders()TproviderOfType(java.lang.String providerName)Return the provider instance of the given name.-
Methods inherited from class com.dtolabs.rundeck.core.plugins.BaseProviderRegistryService
createProviderInstanceFromType, hasValidProviderSignature
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.AbstractProviderRegistryService
getRegistryMap, registerClass, registerInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.configuration.DescribableService
listDescribableProviders, listDescriptions
-
Methods inherited from interface com.dtolabs.rundeck.core.common.FrameworkSupportService
getName
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.PluggableProviderService
adapter
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.PluggableService
canLoadWithLoader, loadCloseableWithLoader, loadWithLoader
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.ProviderRegistryService
isCacheInstances, registerClass, registerInstance, setCacheInstances
-
-
-
-
Method Detail
-
providerOfType
public T providerOfType(java.lang.String providerName) throws ExecutionServiceException
Description copied from class:AbstractProviderRegistryServiceReturn the provider instance of the given name.- Specified by:
providerOfTypein interfaceProviderService<T>- Overrides:
providerOfTypein classAbstractProviderRegistryService<T>- Parameters:
providerName- name of the service provider- Returns:
- the provider instance of the given name.
- Throws:
ExecutionServiceException- on error
-
closeableProviderOfType
public CloseableProvider<T> closeableProviderOfType(java.lang.String providerName) throws ExecutionServiceException
- Specified by:
closeableProviderOfTypein interfaceProviderService<T>- Overrides:
closeableProviderOfTypein classAbstractProviderRegistryService<T>- Throws:
ExecutionServiceException
-
listProviders
public java.util.List<ProviderIdent> listProviders()
- Specified by:
listProvidersin interfaceProviderService<T>- Overrides:
listProvidersin classAbstractProviderRegistryService<T>
-
-