[weld-dev] What is the best way to pass cofiguration to CDI bean using Weld?

Alex Sviridov ooo_saturn7 at mail.ru
Sat Mar 31 07:07:59 EDT 2018


Hi all

Could anyone suggest solution for the following situation.
Lets suppose we have:

public interface SomeManager{}

@ApplicationScoped
public class SomeManagerImpl implements SomeManager{}

@ApplicationScoped
public class Application {} //application entry point

In Application I need to pass configuration to SomeManagerImpl, but I don't want to 
add setConfiguration method to SomeManager interface. What is the best way
to do it in Weld? Maybe I use some CDI mechanisms, or add extra classes. Please, help.

Best regards, Alex Sviridov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20180331/ff9bcd30/attachment.html 


More information about the weld-dev mailing list