Skip to content

Commit

Permalink
PostConstruct is not called when running via java -jar somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
No3x authored and anonymousOo committed Jan 21, 2018
1 parent 96be99d commit 908511c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/de/kintel/ki/gui/MainView.java
Expand Up @@ -33,7 +33,6 @@
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

@Component
Expand Down Expand Up @@ -68,13 +67,8 @@ public class MainView implements FxmlView<MainViewModel> {
@Autowired
private Board board;

@PostConstruct
public void init(){
eventBus.register(this);
}


public void initialize() {
eventBus.register(this);
gridModel = new GridModel<>();

gridModel.setDefaultState( new Field(true) );
Expand Down

0 comments on commit 908511c

Please sign in to comment.