Package com.dtolabs.rundeck.core.plugins
Class FrameworkPluggableProviderService<T>
- java.lang.Object
-
- com.dtolabs.rundeck.core.plugins.BasePluggableProviderService<T>
-
- com.dtolabs.rundeck.core.plugins.FrameworkPluggableProviderService<T>
-
- All Implemented Interfaces:
FrameworkSupportService
,ProviderService<T>
,DescribableService
,JavaClassProviderLoadable<T>
,PluggableProviderService<T>
,PluggableService<T>
- Direct Known Subclasses:
OrchestratorService
public class FrameworkPluggableProviderService<T> extends BasePluggableProviderService<T>
FrameworkPluggableProviderService uses the Framework's plugin manager, and attempts to construct provider instances by injecting the Framework instance as a Constructor parameter if possible.
-
-
Field Summary
-
Fields inherited from class com.dtolabs.rundeck.core.plugins.BasePluggableProviderService
implementationClass, name
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FrameworkPluggableProviderService(java.lang.String name, Framework framework, java.lang.Class<? extends T> implementationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
createProviderInstanceFromType(java.lang.Class<? extends T> execClass, java.lang.String providerName)
protected Framework
getFramework()
ServiceProviderLoader
getPluginManager()
protected boolean
hasValidProviderSignature(java.lang.Class<?> clazz)
-
Methods inherited from class com.dtolabs.rundeck.core.plugins.BasePluggableProviderService
closeableProviderOfType, createProviderInstance, getName, isValidProviderClass, listDescribableProviders, listDescriptions, listProviders, providerOfType
-
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.PluggableProviderService
adapter
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.PluggableService
canLoadWithLoader, loadCloseableWithLoader, loadWithLoader
-
-
-
-
Method Detail
-
getPluginManager
public ServiceProviderLoader getPluginManager()
- Specified by:
getPluginManager
in classBasePluggableProviderService<T>
- Returns:
- the plugin manager to use
-
getFramework
protected Framework getFramework()
-
hasValidProviderSignature
protected boolean hasValidProviderSignature(java.lang.Class<?> clazz)
- Overrides:
hasValidProviderSignature
in classBasePluggableProviderService<T>
-
createProviderInstanceFromType
protected T createProviderInstanceFromType(java.lang.Class<? extends T> execClass, java.lang.String providerName) throws ProviderCreationException
- Overrides:
createProviderInstanceFromType
in classBasePluggableProviderService<T>
- Throws:
ProviderCreationException
-
-