com.dtolabs.rundeck.core.plugins
Interface PluggableService<T>

All Superinterfaces:
FrameworkSupportService
All Known Subinterfaces:
PluggableProviderService<T>
All Known Implementing Classes:
BasePluggableProviderService, FileCopierService, FrameworkPluggableProviderService, NodeExecutorService, NodeSpecifiedService, PluggableProviderRegistryService, ResourceFormatGeneratorService, ResourceFormatParserService, ResourceModelSourceService

public interface PluggableService<T>
extends FrameworkSupportService

PluggableService is a service that supports plugin provider classes and optionally supports plugin provider scripts.


Method Summary
 T createProviderInstance(java.lang.Class<T> clazz, java.lang.String name)
          Create provider instance from a class
 T createScriptProviderInstance(ScriptPluginProvider provider)
          Return the instance for a ScriptPluginProvider definition
 boolean isScriptPluggable()
          Return true if the service supports script plugins
 boolean isValidProviderClass(java.lang.Class clazz)
          Return true if the class is a valid provider class for the service
 
Methods inherited from interface com.dtolabs.rundeck.core.common.FrameworkSupportService
getName
 

Method Detail

isValidProviderClass

boolean isValidProviderClass(java.lang.Class clazz)
Return true if the class is a valid provider class for the service

Parameters:
clazz - the class

createProviderInstance

T createProviderInstance(java.lang.Class<T> clazz,
                         java.lang.String name)
                         throws PluginException,
                                ProviderCreationException
Create provider instance from a class

Parameters:
clazz - the class
name - the provider name
Throws:
PluginException
ProviderCreationException

isScriptPluggable

boolean isScriptPluggable()
Return true if the service supports script plugins


createScriptProviderInstance

T createScriptProviderInstance(ScriptPluginProvider provider)
                               throws PluginException
Return the instance for a ScriptPluginProvider definition

Parameters:
provider - the script plugin provider
Throws:
PluginException