public class ResourceModelSourceService extends PluggableProviderRegistryService<ResourceModelSourceFactory> implements ConfigurableService<ResourceModelSource>, DescribableService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME |
framework, instanceregistry, registry
Constructor and Description |
---|
ResourceModelSourceService(Framework framework) |
Modifier and Type | Method and Description |
---|---|
ResourceModelSourceFactory |
createProviderInstance(java.lang.Class<ResourceModelSourceFactory> clazz,
java.lang.String name)
Create provider instance from a class
|
ResourceModelSourceFactory |
createScriptProviderInstance(ScriptPluginProvider provider)
Return the instance for a ScriptPluginProvider definition
|
static ResourceModelSourceService |
getInstanceForFramework(Framework framework) |
java.lang.String |
getName()
Return the name used to identify the service
|
ResourceModelSource |
getProviderForConfiguration(java.lang.String type,
java.util.Properties configuration)
Return a ResourceModelSource of a give type with a given configuration
|
ResourceModelSource |
getSourceForConfiguration(java.lang.String type,
java.util.Properties configuration)
Return a ResourceModelSource of a give type with a given configuration
|
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
|
java.util.List<ProviderIdent> |
listDescribableProviders() |
java.util.List<Description> |
listDescriptions() |
listProviders, providerOfType
createProviderInstanceFromType, hasValidProviderSignature, registerClass, registerInstance
public static final java.lang.String SERVICE_NAME
public ResourceModelSourceService(Framework framework)
public java.lang.String getName()
FrameworkSupportService
getName
in interface FrameworkSupportService
public static ResourceModelSourceService getInstanceForFramework(Framework framework)
public ResourceModelSource getSourceForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
ExecutionServiceException
public boolean isValidProviderClass(java.lang.Class clazz)
PluggableService
isValidProviderClass
in interface PluggableService<ResourceModelSourceFactory>
clazz
- the classpublic ResourceModelSourceFactory createProviderInstance(java.lang.Class<ResourceModelSourceFactory> clazz, java.lang.String name) throws PluginException, ProviderCreationException
PluggableService
createProviderInstance
in interface PluggableService<ResourceModelSourceFactory>
clazz
- the classname
- the provider namePluginException
ProviderCreationException
public boolean isScriptPluggable()
PluggableService
isScriptPluggable
in interface PluggableService<ResourceModelSourceFactory>
public ResourceModelSourceFactory createScriptProviderInstance(ScriptPluginProvider provider) throws PluginException
PluggableService
createScriptProviderInstance
in interface PluggableService<ResourceModelSourceFactory>
provider
- the script plugin providerPluginException
public ResourceModelSource getProviderForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
ConfigurableService
getProviderForConfiguration
in interface ConfigurableService<ResourceModelSource>
ExecutionServiceException
public java.util.List<Description> listDescriptions()
listDescriptions
in interface DescribableService
public java.util.List<ProviderIdent> listDescribableProviders()
listDescribableProviders
in interface DescribableService