Package com.glyart.asql.common.context
Interface ASQLContext<T>
-
- Type Parameters:
T
- The plugin type related to this context
public interface ASQLContext<T>
Represents a generic ASQLContext. An implementation of ASQLContext represents the state of the system where this API is used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSourceHandler
getDataSourceHandler()
Gets the data source interaction strategy linked to this ASQLContext.DataTemplate<? extends ASQLContext<T>>
getDataTemplate()
Gets theDataTemplate
instance linked to this ASQLContext.Logger
getLogger()
Gets the logger used by this ASQLContext.T
getPlugin()
Gets the plugin who created this ASQLContext.ContextScheduler
getScheduler()
Gets the scheduling policy linked to this ASQLContext.
-
-
-
Method Detail
-
getScheduler
ContextScheduler getScheduler()
Gets the scheduling policy linked to this ASQLContext.- Returns:
- A singleton IScheduler instance
- See Also:
ContextScheduler
-
getDataTemplate
DataTemplate<? extends ASQLContext<T>> getDataTemplate()
Gets theDataTemplate
instance linked to this ASQLContext.- Returns:
- the data template related to this context
-
getDataSourceHandler
DataSourceHandler getDataSourceHandler()
Gets the data source interaction strategy linked to this ASQLContext.- Returns:
- The data source handler
- See Also:
DataSourceHandler
-
getPlugin
T getPlugin()
Gets the plugin who created this ASQLContext.- Returns:
- the plugin related to this context
-
getLogger
Logger getLogger()
Gets the logger used by this ASQLContext.- Returns:
- the context logger
-
-