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) |
closeableProviderOfType, listProviders, providerOfType
createProviderInstanceFromType, hasValidProviderSignature, registerClass, registerInstance
public static final java.lang.String SERVICE_NAME
public ResourceModelSourceService(Framework framework)
public java.util.List<java.lang.String> getBundledProviderNames()
public java.lang.String getName()
getName
in interface FrameworkSupportService
public static ResourceModelSourceService getInstanceForFramework(Framework framework)
public ResourceModelSource getSourceForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
configuration
- configurationtype
- provider nameExecutionServiceException
- on errorpublic CloseableProvider<ResourceModelSource> getCloseableSourceForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
configuration
- configurationtype
- provider nameExecutionServiceException
- on errorpublic boolean isValidProviderClass(java.lang.Class clazz)
isValidProviderClass
in interface PluggableService<ResourceModelSourceFactory>
clazz
- the classpublic <X extends ResourceModelSourceFactory> ResourceModelSourceFactory createProviderInstance(java.lang.Class<X> clazz, java.lang.String name) throws PluginException, ProviderCreationException
createProviderInstance
in interface PluggableService<ResourceModelSourceFactory>
X
- subtype of Tclazz
- the classname
- the provider namePluginException
- if the plugin has an errorProviderCreationException
- if creating the instance has an errorpublic boolean isScriptPluggable()
isScriptPluggable
in interface PluggableService<ResourceModelSourceFactory>
public ResourceModelSourceFactory createScriptProviderInstance(ScriptPluginProvider provider) throws PluginException
createScriptProviderInstance
in interface PluggableService<ResourceModelSourceFactory>
provider
- the script plugin providerPluginException
- if the plugin has an errorpublic ResourceModelSource getProviderForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
getProviderForConfiguration
in interface ConfigurableService<ResourceModelSource>
type
- provider nameconfiguration
- configuration propertiesExecutionServiceException
- on errorpublic CloseableProvider<ResourceModelSource> getCloseableProviderForConfiguration(java.lang.String type, java.util.Properties configuration) throws ExecutionServiceException
ConfigurableService
getCloseableProviderForConfiguration
in interface ConfigurableService<ResourceModelSource>
type
- plugin typeconfiguration
- configuration propertiesExecutionServiceException
public java.util.List<Description> listDescriptions()
listDescriptions
in interface DescribableService
public java.util.List<ProviderIdent> listDescribableProviders()
listDescribableProviders
in interface DescribableService