質問

Say I have a @ApplicationScoped MyProducer class which in turn have @Produces MyModel model, the question is, when I have anywhere in the app a @Inject MyModel something then this model would be whatever the value of MyModel model in the producer class/object, is that correct?

役に立ちましたか?

解決

I believe so.

Here is simple example how to use CDI producers in Errai and here is full CDI spec about producers.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top