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 Semantic Type.Collection<LogicalType>
getRegisteredLogicalTypes()
Return the set of registered Semantic Types.void
registerPluginList(List<PluginDefinition> plugins, String dataStreamName, AnalysisConfig analysisConfig)
protected void
registerPluginListCore(List<PluginDefinition> plugins, String dataStreamName, AnalysisConfig analysisConfig, boolean internal)
void
registerPlugins(java.io.Reader JSON, String dataStreamName, AnalysisConfig analysisConfig)
void
registerPlugins(String JSON, String dataStreamName, AnalysisConfig analysisConfig)
protected void
registerPluginsInternal(java.io.Reader JSON, String dataStreamName, AnalysisConfig analysisConfig)
-
-
-
Method Detail
-
registerPlugins
public void registerPlugins(java.io.Reader JSON, String dataStreamName, AnalysisConfig analysisConfig) 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, AnalysisConfig analysisConfig) 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, AnalysisConfig analysisConfig) 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, AnalysisConfig analysisConfig) 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, AnalysisConfig analysisConfig, 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 Semantic Types.- Returns:
- A Collection of the currently registered Semantic Types.
-
getRegistered
public LogicalType getRegistered(String qualifier)
Return the plugin associated with this named Semantic Type.- Parameters:
qualifier
- Name of this Semantic Type.- Returns:
- A Collection of the currently registered Semantic Types.
-
-