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, notifyLicenseStateChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigCategories, getConfigOverviewContributor, getConfigPanels, getMountedResourceFolder, getMountPathAlias, getStatusOverviewContributor, isFreeModule, mountRouteHandlers, updateSystemMapprotected abstract java.util.List<DriverType> getDriverTypes()
DriverTypes to be registered with the DriverManager.protected abstract int getExpectedAPIVersion()
public void setup(GatewayContext context)
GatewayModuleHooksetup in interface GatewayModuleHookpublic void startup(LicenseState activationState)
GatewayModuleHookstartup in interface GatewayModuleHookpublic void shutdown()
GatewayModuleHookshutdown in interface GatewayModuleHookpublic void serviceReady(java.lang.Class<?> serviceClass)
ModuleServiceConsumerserviceReady in interface ModuleServiceConsumerpublic void serviceShutdown(java.lang.Class<?> serviceClass)
ModuleServiceConsumerserviceShutdown in interface ModuleServiceConsumerpublic 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.