public class DataAdapterFactory
extends java.lang.Object
DataAdapter classes| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<DataAdapterInfo> |
getActiveAdapters()
Gets a collection of
DataAdapterInfo for all active (enabled) DataAdapter |
java.util.Collection<DataAdapterInfo> |
getAllAdapters()
Gets a collection of
DataAdapterInfo for all registered DataAdapter |
DataAdapterDialog |
getDialog(java.lang.String key,
javafx.scene.Node root)
Returns an instance of
DataAdapterDialog used to gather source access parameters from the end user. |
static DataAdapterFactory |
getInstance()
Gets the singleton instance of
DataAdapterFactory |
DataAdapter<?,?> |
newAdapter(DataAdapterInfo info)
Returns a new instance of a registered
DataAdapter as identified by the specified key |
DataAdapter<?,?> |
newAdapter(java.lang.String key)
Returns a new instance of a registered
DataAdapter as identified by the specified key |
public static DataAdapterFactory getInstance()
DataAdapterFactoryDataAdapterFactorypublic java.util.Collection<DataAdapterInfo> getActiveAdapters()
DataAdapterInfo for all active (enabled) DataAdapterDataAdapterInfo for all active (enabled) DataAdapterpublic java.util.Collection<DataAdapterInfo> getAllAdapters()
DataAdapterInfo for all registered DataAdapterDataAdapterInfo for all registered DataAdapterpublic DataAdapter<?,?> newAdapter(DataAdapterInfo info) throws NoAdapterFoundException, CannotInitializeDataAdapterException
DataAdapter as identified by the specified keyinfo - a DataAdapterInfo instance used as a keyDataAdapterNoAdapterFoundException - if no registered DataAdapter could be found for the provided keyCannotInitializeDataAdapterException - if an error occurred while trying to create a new instance.public DataAdapterDialog getDialog(java.lang.String key, javafx.scene.Node root) throws NoAdapterFoundException, CannotInitializeDataAdapterException
DataAdapterDialog used to gather source access parameters from the end user.key - a string that uniquely identify the type of the DataAdapterroot - the root node to act as the owner of the DialogDataAdapterDialog used to gather source access parameters from the end user.NoAdapterFoundException - if no adapter matching the provided key could be foundCannotInitializeDataAdapterException - if an error occurred while trying to create a new instance.public DataAdapter<?,?> newAdapter(java.lang.String key) throws NoAdapterFoundException, CannotInitializeDataAdapterException
DataAdapter as identified by the specified keykey - a string used as a keyDataAdapterNoAdapterFoundException - if no registered DataAdapter could be found for the provided keyCannotInitializeDataAdapterException - if an error occurred while trying to create a new instance.Copyright © 2018 Frederic Thevenet. All rights reserved.