public interface ClientAddonProvider
Modifier and Type | Method and Description |
---|---|
<T extends Configuration> |
createComponentUI(ComponentMetadata<T> metadata)
Creates an component addon user interface compatible with the configuration metadata.
|
ComponentAddonUI<?> |
createComponentUI(java.lang.String typeIdentifier)
Creates a component addon user interface for the given type identifier.
|
<T extends Configuration> |
createComponentUI(java.lang.String typeIdentifier,
java.lang.Class<T> configurationClass)
Creates a component addon user interface with the given type identifier, producing component comfigurations of the given configuration class.
|
<T extends Configuration> |
createComponentUI(T configuration)
Creates an component addon user interface compatible with the configuration, and initializes it with the configuration.
|
AddonUI<? extends AddonMetadata> |
createPostProcessorUI(java.lang.String typeIdentifier,
java.lang.String measurementFolder)
Creates a post processor user interface for the given type identifier.
|
<T extends AddonMetadata> |
createPostProcessorUI(T metadata,
java.lang.String measurementFolder)
Creates an post processor user interface compatible with the metadata.
|
ToolAddonUI |
createToolUI(java.lang.String typeIdentifier)
Creates a tool user interface for the given type identifier.
|
ToolAddonUI |
createToolUI(ToolMetadata metadata)
Creates a tool user interface compatible with the metadata.
|
java.util.List<ComponentMetadata<?>> |
getComponentMetadata()
Returns the metadata of all components.
|
<T extends Configuration> |
getComponentMetadata(java.lang.Class<T> configurationClass)
Returns the metadata of all components being able to produce or consume sub-class of the provided configuration class.
|
ComponentMetadata<?> |
getComponentMetadata(java.lang.String typeIdentifier)
Returns the metadata of the component having the given type identifier
|
<T extends Configuration> |
getComponentMetadata(java.lang.String typeIdentifier,
java.lang.Class<T> configurationClass)
Returns the metadata of the component having the given type identifier, with the component producing/consuming the given type of configurations.
|
java.util.List<java.lang.String> |
getComponentTypeIdentifiers()
Returns the type identifiers of all components.
|
java.util.List<java.lang.String> |
getComponentTypeIdentifiers(java.lang.Class<? extends Configuration> configurationClass)
Returns the type identifiers of all component addons capable of consuming and creating configuration being sub-classes of the provided configuration class.
|
Microplate |
getMicroplateType(java.lang.String typeIdentifier)
Returns the microplate type with the given type identifer.
|
java.util.List<java.lang.String> |
getMicroplateTypeIdentifiers()
Returns the type identifiers of all known microplate types.
|
java.util.List<Microplate> |
getMicroplateTypes()
Returns all known microplate types.
|
java.util.List<AddonMetadata> |
getPostProcessorMetadata()
Returns the metadata of all post processors.
|
AddonMetadata |
getPostProcessorMetadata(java.lang.String typeIdentifier)
Returns the metadata of the post processor having the given type identifier
|
java.util.List<java.lang.String> |
getPostProcessorTypeIdentifiers()
Returns the type identifiers of all post processors.
|
java.util.List<javax.script.ScriptEngineFactory> |
getScriptEngineFactories()
Returns all script engine factories supported by the client.
|
javax.script.ScriptEngineFactory |
getScriptEngineFactory(java.lang.String typeIdentifier)
Returns a script engine factory with the given type identifier.
|
java.util.List<ToolMetadata> |
getToolMetadata()
Returns the metadata of all tools.
|
ToolMetadata |
getToolMetadata(java.lang.String typeIdentifier)
Returns the metadata of the tool having the given type identifier
|
java.util.List<java.lang.String> |
getToolTypeIdentifiers()
Returns the type identifiers of all tools.
|
ComponentAddonUI<?> createComponentUI(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- type identifier of the addon/configuration.AddonException
- Thrown if no factory for the given component addon exists, or if the creation of the addon failed.<T extends Configuration> ComponentAddonUI<? extends T> createComponentUI(java.lang.String typeIdentifier, java.lang.Class<T> configurationClass) throws AddonException
typeIdentifier
- type identifier of the addon/configuration.configurationClass
- The configuration class which the addon user interface produces.AddonException
- Thrown if no factory for the given component addon exists, or if the addon does not create configurations of the given configuration class.<T extends Configuration> ComponentAddonUI<? extends T> createComponentUI(T configuration) throws AddonException, ConfigurationException
configuration
- Configuration to edit.AddonException
- Thrown if no factory for the given component type exists, or if the addon does not create configurations of the given configuration class.ConfigurationException
- Thrown if corresponding component addon was found, but configuration was invalid.<T extends Configuration> ComponentAddonUI<T> createComponentUI(ComponentMetadata<T> metadata) throws AddonException
metadata
- The metadata for which a component addon UI should be constructed.AddonException
- Thrown if no factory for the given component metadata exists.java.util.List<java.lang.String> getComponentTypeIdentifiers(java.lang.Class<? extends Configuration> configurationClass)
configurationClass
- Configuration class for which all component type identifiers of configurations being sub-classes of this configuration should be returned.java.util.List<java.lang.String> getComponentTypeIdentifiers()
<T extends Configuration> java.util.List<ComponentMetadata<? extends T>> getComponentMetadata(java.lang.Class<T> configurationClass)
configurationClass
- Configuration class for which all metadata of componentsshould be returned.java.util.List<ComponentMetadata<?>> getComponentMetadata()
ComponentMetadata<?> getComponentMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- type identifier of the component.AddonException
- Thrown if no factory for the given component exists, or if the creation of the metadata failed.<T extends Configuration> ComponentMetadata<? extends T> getComponentMetadata(java.lang.String typeIdentifier, java.lang.Class<T> configurationClass) throws AddonException
typeIdentifier
- type identifier of the component.configurationClass
- Configuration class of the component.AddonException
- Thrown if no factory for the given component exists, if the creation of the metadata failed, or if component cannot consume/produce given configuration class.java.util.List<Microplate> getMicroplateTypes()
java.util.List<java.lang.String> getMicroplateTypeIdentifiers()
Microplate getMicroplateType(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- Type identifier of the microplate.AddonException
- Thrown if microplate type identifier is unknown.AddonUI<? extends AddonMetadata> createPostProcessorUI(java.lang.String typeIdentifier, java.lang.String measurementFolder) throws AddonException
typeIdentifier
- type identifier of the post processor.measurementFolder
- The folder where the measurement which should be processed is located.AddonException
- Thrown if no factory for the given post processor addon exists, or if the creation of the post processor failed.<T extends AddonMetadata> AddonUI<T> createPostProcessorUI(T metadata, java.lang.String measurementFolder) throws AddonException
metadata
- The metadata for which a post processor addon UI should be constructed.measurementFolder
- The folder where the measurement which should be processed is located.AddonException
- Thrown if no factory for the given post processor metadata exists.java.util.List<java.lang.String> getPostProcessorTypeIdentifiers()
java.util.List<AddonMetadata> getPostProcessorMetadata()
AddonMetadata getPostProcessorMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- type identifier of the post processor.AddonException
- Thrown if no factory for the given post processor exists, or if the creation of the metadata failed.ToolAddonUI createToolUI(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- type identifier of the tool.AddonException
- Thrown if no factory for the given tool exists, or if the creation of the tool failed.ToolAddonUI createToolUI(ToolMetadata metadata) throws AddonException
metadata
- The metadata for which a tool UI should be constructed.AddonException
- Thrown if no factory for the given tool metadata exists.java.util.List<java.lang.String> getToolTypeIdentifiers()
java.util.List<ToolMetadata> getToolMetadata()
ToolMetadata getToolMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- type identifier of the tool.AddonException
- Thrown if no factory for the given tool exists, or if the creation of the metadata failed.java.util.List<javax.script.ScriptEngineFactory> getScriptEngineFactories()
javax.script.ScriptEngineFactory getScriptEngineFactory(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- The type identifier/name of the script engine factory. Same as ScriptEngineFactory.getEngineName()
.AddonException
- Thrown if no script engine factory for the given type identifier exists.