Class AutoCloseableNode

java.lang.Object
io.vertigo.core.node.AutoCloseableNode
All Implemented Interfaces:
Node, AutoCloseable

public final class AutoCloseableNode extends Object implements Node, AutoCloseable
The node class is the core of vertigo.
Author:
pchretien
  • Constructor Details

    • AutoCloseableNode

      public AutoCloseableNode(NodeConfig nodeConfig)
      Constructor.
      Parameters:
      nodeConfig - Application configuration
  • Method Details

    • registerPreActivateFunction

      public void registerPreActivateFunction(Runnable preActivateFunction)
      Specified by:
      registerPreActivateFunction in interface Node
      Parameters:
      preActivateFunction - Runnable function post start
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getStart

      public Instant getStart()
      Specified by:
      getStart in interface Node
      Returns:
      Start
    • getNodeConfig

      public NodeConfig getNodeConfig()
      Specified by:
      getNodeConfig in interface Node
      Returns:
      the node configuration
    • getDefinitionSpace

      public DefinitionSpace getDefinitionSpace()
      Description copied from interface: Node
      Returns the space where all the definitions are stored.
      Specified by:
      getDefinitionSpace in interface Node
      Returns:
      the definitionSpace
    • getComponentSpace

      public ComponentSpace getComponentSpace()
      Description copied from interface: Node
      Returns the space where all the components are stored.
      Specified by:
      getComponentSpace in interface Node
      Returns:
      the componentSpace