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 |
---|---|
<X extends ResourceModelSourceFactory> |
createProviderInstance(java.lang.Class<X> clazz,
java.lang.String name) |
ResourceModelSourceFactory |
createScriptProviderInstance(ScriptPluginProvider provider) |
java.util.List<java.lang.String> |
getBundledProviderNames() |
static ResourceModelSourceService |
getInstanceForFramework(Framework framework) |
java.lang.String |
getName() |
ResourceModelSource |
getProviderForConfiguration(java.lang.String type,
java.util.Properties configuration) |
ResourceModelSource |
getSourceForConfiguration(java.lang.String type,
java.util.Properties configuration) |
boolean |
isScriptPluggable() |
boolean |
isValidProviderClass(java.lang.Class clazz) |
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.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 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 java.util.List<Description> listDescriptions()
listDescriptions
in interface DescribableService
public java.util.List<ProviderIdent> listDescribableProviders()
listDescribableProviders
in interface DescribableService