When trying to inject arguments into the constructor of a CDI bean (ApplicationScoped), I\'m encountering the following issue:
Caused by: org.jboss.weld.exceptio
We resolved similar problem splitting class into interface and implementation. In your case something like this:
public interface Config
{
// API here
}
@ApplicationScoped @Priority(0)
public class ConfigImpl implements Config
{
@Inject
public ConfigImpl(ConfigLocator configLocator) { ... }
// API implementation here
}