Package io.vertigo.core.node
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 Summary
Constructors Constructor Description AutoCloseableNode(NodeConfig nodeConfig)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ComponentSpace
getComponentSpace()
Returns the space where all the components are stored.DefinitionSpace
getDefinitionSpace()
Returns the space where all the definitions are stored.NodeConfig
getNodeConfig()
Instant
getStart()
void
registerPreActivateFunction(Runnable preActivateFunction)
-
-
-
Constructor Detail
-
AutoCloseableNode
public AutoCloseableNode(NodeConfig nodeConfig)
Constructor.- Parameters:
nodeConfig
- Application configuration
-
-
Method Detail
-
registerPreActivateFunction
public void registerPreActivateFunction(Runnable preActivateFunction)
- Specified by:
registerPreActivateFunction
in interfaceNode
- Parameters:
preActivateFunction
- Runnable function post start
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getNodeConfig
public NodeConfig getNodeConfig()
- Specified by:
getNodeConfig
in interfaceNode
- 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 interfaceNode
- 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 interfaceNode
- Returns:
- the componentSpace
-
-