Comments (4)
Good idea, but: who calls the setModelOrService(String,Object) method? So far this method was used for test purposes only. You would have to call the method setModelOrService before the InjectionProvider started with wiring.
from afterburner.fx.
Beside using command line arguments for system properties we use System.setProperty at runtime. Because we wanted to inject numbers and maybe other objects we though about the inject mechanisms and opened this issue.
Our idea was to replace the System.setProperty(String, String) with a more powerful setModelOrService(String,Object).
from afterburner.fx.
We will need a third class, like ConfigurationProvider / ConfigurationSource which provides such attributes. Such a class will have to be loaded, before FXML kicks in...
from afterburner.fx.
ConfigurationSource is implemented as: Function<Object, Object> configurationSupplier Please checkout InjectorTest::longInjectionWithCustomProvider and Injector::setConfigurationSource
Also with Injector::setInstanceSupplier you should be able to provide your own products (= models, services etc.)
Warning: I renamed InjectionProvider to Injector (shorter).
from afterburner.fx.
Related Issues (20)
- Topgun 1.6.3 Release HOT 5
- How to use dagger2 as a dependency injection? HOT 1
- in r1.7.0, why is there a package "topgun" and "lifecycle"
- set different ResourceBundle for different Views HOT 4
- Dependency-Injection for superclasses..... HOT 2
- groovy compatibility
- System.err.println("File: " + name + " not found, attempting with camel case"); HOT 4
- How to navigate between scenes / nested scenes? HOT 1
- Injection context ignored for presenter members at first HOT 3
- afterburner.fx not working with java 9 HOT 3
- FXMLView as custom control for Scene Builder HOT 1
- @Inject can not works in method call of task thread
- Creation before injection
- Provide additional information about injecting fields
- inject ObservableList HOT 1
- [Advice] CSS not loading
- IllegalStateException: while synchronous loading of fxml
- Inject ints? HOT 1
- Leading slash in getResource() HOT 1
- Maven artifact for this project is a shaded jar, which breaks modules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afterburner.fx.