Class ResourceRegistryManager

java.lang.Object
org.gcube.informationsystem.resourceregistry.ResourceRegistryManager
All Implemented Interfaces:
org.gcube.smartgears.ApplicationManager

public class ResourceRegistryManager extends Object implements org.gcube.smartgears.ApplicationManager
Manages the application initialization and shutdown lifecycle per execution context.

The initialization and shutdown methods are invoked once per context in which the application is running, respectively at startup and shutdown times. This manager is linked to the application by declaring it via the ManagedBy annotation (see ResourceInitializer).

Author:
Luca Frosini (ISTI - CNR)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the application, logging the active database URI and the current operational mode or context.
    void
    Stops the application instance for the specific context, terminating active resources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gcube.smartgears.ApplicationManager

    onPublished
  • Constructor Details

    • ResourceRegistryManager

      public ResourceRegistryManager()
  • Method Details

    • onInit

      public void onInit()
      Initializes the application, logging the active database URI and the current operational mode or context.
      Specified by:
      onInit in interface org.gcube.smartgears.ApplicationManager
    • onShutdown

      public void onShutdown()
      Stops the application instance for the specific context, terminating active resources.
      Specified by:
      onShutdown in interface org.gcube.smartgears.ApplicationManager