Package com.cobber.fta
Class Plugins
- Object
-
- Plugins
-
public class Plugins extends Object
A singleton (per thread) used to track the set of plugins.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalType
getRegistered(String qualifier)
Return the plugin associated with this named Logical Type.Collection<LogicalType>
getRegisteredLogicalTypes()
Return the set of registered Logical Types.void
registerPluginList(List<PluginDefinition> plugins, String dataStreamName, Locale locale)
protected void
registerPluginListCore(List<PluginDefinition> plugins, String dataStreamName, Locale locale, boolean internal)
void
registerPlugins(java.io.Reader JSON, String dataStreamName, Locale locale)
void
registerPlugins(String JSON, String dataStreamName, Locale locale)
protected void
registerPluginsInternal(java.io.Reader JSON, String dataStreamName, Locale locale)
-
-
-
Method Detail
-
registerPlugins
public void registerPlugins(java.io.Reader JSON, String dataStreamName, Locale locale) throws java.io.IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException, FTAPluginException
- Throws:
java.io.IOException
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
java.lang.reflect.InvocationTargetException
FTAPluginException
-
registerPlugins
public void registerPlugins(String JSON, String dataStreamName, Locale locale) throws java.io.IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException, FTAPluginException
- Throws:
java.io.IOException
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
java.lang.reflect.InvocationTargetException
FTAPluginException
-
registerPluginList
public void registerPluginList(List<PluginDefinition> plugins, String dataStreamName, Locale locale) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException, FTAPluginException
- Throws:
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
java.lang.reflect.InvocationTargetException
FTAPluginException
-
registerPluginsInternal
protected void registerPluginsInternal(java.io.Reader JSON, String dataStreamName, Locale locale) throws java.io.IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException, FTAPluginException
- Throws:
java.io.IOException
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
java.lang.reflect.InvocationTargetException
FTAPluginException
-
registerPluginListCore
protected void registerPluginListCore(List<PluginDefinition> plugins, String dataStreamName, Locale locale, boolean internal) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException, FTAPluginException
- Throws:
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
java.lang.reflect.InvocationTargetException
FTAPluginException
-
getRegisteredLogicalTypes
public Collection<LogicalType> getRegisteredLogicalTypes()
Return the set of registered Logical Types.- Returns:
- A Collection of the currently registered Logical Types.
-
getRegistered
public LogicalType getRegistered(String qualifier)
Return the plugin associated with this named Logical Type.- Parameters:
qualifier
- Name of this Logical Type.- Returns:
- A Collection of the currently registered Logical Types.
-
-