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 voidclose()ComponentSpacegetComponentSpace()Returns the space where all the components are stored.DefinitionSpacegetDefinitionSpace()Returns the space where all the definitions are stored.NodeConfiggetNodeConfig()InstantgetStart()voidregisterPreActivateFunction(Runnable preActivateFunction)
-
-
-
Constructor Detail
-
AutoCloseableNode
public AutoCloseableNode(NodeConfig nodeConfig)
Constructor.- Parameters:
nodeConfig- Application configuration
-
-
Method Detail
-
registerPreActivateFunction
public void registerPreActivateFunction(Runnable preActivateFunction)
- Specified by:
registerPreActivateFunctionin interfaceNode- Parameters:
preActivateFunction- Runnable function post start
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getNodeConfig
public NodeConfig getNodeConfig()
- Specified by:
getNodeConfigin interfaceNode- Returns:
- the node configuration
-
getDefinitionSpace
public DefinitionSpace getDefinitionSpace()
Description copied from interface:NodeReturns the space where all the definitions are stored.- Specified by:
getDefinitionSpacein interfaceNode- Returns:
- the definitionSpace
-
getComponentSpace
public ComponentSpace getComponentSpace()
Description copied from interface:NodeReturns the space where all the components are stored.- Specified by:
getComponentSpacein interfaceNode- Returns:
- the componentSpace
-
-