-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(framework): Search super classes for fields and methods
- Loading branch information
Showing
5 changed files
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
ludo/src/main/java/de/uniks/ludo/controller/BaseController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package de.uniks.ludo.controller; | ||
|
||
import de.uniks.ludo.App; | ||
import de.uniks.ludo.service.GameService; | ||
import org.fulib.fx.annotation.controller.Resource; | ||
import org.fulib.fx.annotation.event.onInit; | ||
import org.fulib.fx.controller.Subscriber; | ||
|
||
import javax.inject.Inject; | ||
import java.util.ResourceBundle; | ||
|
||
public class BaseController { | ||
|
||
@Inject | ||
public BaseController() { | ||
} | ||
|
||
@Inject | ||
@Resource | ||
ResourceBundle bundle; | ||
|
||
@Inject | ||
App app; | ||
@Inject | ||
GameService gameService; | ||
@Inject | ||
Subscriber subscriber; | ||
|
||
@onInit | ||
public void onInit() { | ||
// This would be called in all controllers | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
ludo/src/main/java/de/uniks/ludo/controller/SetupController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters