public abstract class AbstractDriverModuleHook extends AbstractGatewayModuleHook implements ModuleServiceConsumer
Constructor and Description |
---|
AbstractDriverModuleHook() |
Modifier and Type | Method and Description |
---|---|
GatewayContext |
getContext() |
protected java.util.Optional<DriverManager> |
getDriverManager()
Get the
DriverManager , if the ModuleServicesManager has indicated it's available. |
protected abstract java.util.List<DriverType> |
getDriverTypes() |
protected abstract int |
getExpectedAPIVersion()
`
|
protected void |
runLegacyConversions(GatewayContext context)
Run any legacy property conversions if necessary.
|
void |
serviceReady(java.lang.Class<?> serviceClass)
The service indicated by serviceClass is ready for use.
|
void |
serviceShutdown(java.lang.Class<?> serviceClass)
The service indicated by serviceClass has shut down.
|
void |
setup(GatewayContext context)
Called to before startup.
|
void |
shutdown()
Called to shutdown this module.
|
void |
startup(LicenseState activationState)
Called to initialize the module.
|
configureDeserializer, configureFunctionFactory, configureSerializer, getHomepagePanels, getRPCHandler, getStatusPanels, initializeScriptManager, notifyLicenseStateChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigCategories, getConfigOverviewContributor, getConfigPanels, getMountedResourceFolder, getMountPathAlias, getStatusOverviewContributor, isFreeModule, mountRouteHandlers, updateSystemMap
protected abstract java.util.List<DriverType> getDriverTypes()
DriverType
s to be registered with the DriverManager
.protected abstract int getExpectedAPIVersion()
public void setup(GatewayContext context)
GatewayModuleHook
setup
in interface GatewayModuleHook
public void startup(LicenseState activationState)
GatewayModuleHook
startup
in interface GatewayModuleHook
public void shutdown()
GatewayModuleHook
shutdown
in interface GatewayModuleHook
public void serviceReady(java.lang.Class<?> serviceClass)
ModuleServiceConsumer
serviceReady
in interface ModuleServiceConsumer
public void serviceShutdown(java.lang.Class<?> serviceClass)
ModuleServiceConsumer
serviceShutdown
in interface ModuleServiceConsumer
public GatewayContext getContext()
protected java.util.Optional<DriverManager> getDriverManager()
DriverManager
, if the ModuleServicesManager
has indicated it's available.
Generally, the DriverManager
should be available after startup(LicenseState)
and before
shutdown()
.DriverManager
, if it's available.protected void runLegacyConversions(GatewayContext context)
LegacyDeviceConfigConverter
.