BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
ui.ContextAwareFXMLLoader Class Reference
Inheritance diagram for ui.ContextAwareFXMLLoader:
Inheritance graph
[legend]
Collaboration diagram for ui.ContextAwareFXMLLoader:
Collaboration graph
[legend]

Public Member Functions

void setApplicationContext (ApplicationContext context)
 
- Public Member Functions inherited from ui.FXMLLoader
void setLocation (URL fxml)
 
< FXMLType > FXMLType load () throws IOException
 
void setRoot (Object root)
 

Detailed Description

Define a loader for FXML that is aware of the current Spring application context. This loader uses ApplicationContext#getBean(Class) to load its controllers, and the Beans that control the UI have been initialized in the Spring IOC container

Definition at line 12 of file ContextAwareFXMLLoader.java.

Member Function Documentation

void ui.ContextAwareFXMLLoader.setApplicationContext ( ApplicationContext  context)

Sets the controller factory to use ApplicationContext#getBean(Class)

Parameters
contextThe new context that is set by Spring

Definition at line 20 of file ContextAwareFXMLLoader.java.

20  {
21  this.setControllerFactory(context::getBean);
22  }

The documentation for this class was generated from the following file:
Git Repo