Package io.vertigo.core.node
Class AutoCloseableNode
java.lang.Object
io.vertigo.core.node.AutoCloseableNode
- All Implemented Interfaces:
Node,AutoCloseable
The node class is the core of vertigo.
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the space where all the components are stored.Returns the space where all the definitions are stored.getStart()voidregisterPreActivateFunction(Runnable preActivateFunction)
-
Constructor Details
-
AutoCloseableNode
Constructor.- Parameters:
nodeConfig- Application configuration
-
-
Method Details
-
registerPreActivateFunction
- Specified by:
registerPreActivateFunctionin interfaceNode- Parameters:
preActivateFunction- Runnable function post start
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getStart
-
getNodeConfig
- Specified by:
getNodeConfigin interfaceNode- Returns:
- the node configuration
-
getDefinitionSpace
Description copied from interface:NodeReturns the space where all the definitions are stored.- Specified by:
getDefinitionSpacein interfaceNode- Returns:
- the definitionSpace
-
getComponentSpace
Description copied from interface:NodeReturns the space where all the components are stored.- Specified by:
getComponentSpacein interfaceNode- Returns:
- the componentSpace
-