You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/03/28 11:49:14 UTC
[jira] [Commented] (DELTASPIKE-548) WELD-001408: Unsatisfied
dependencies for type Scheduler
[ https://issues.apache.org/jira/browse/DELTASPIKE-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950571#comment-13950571 ]
Gerhard Petracek commented on DELTASPIKE-548:
---------------------------------------------
a type-safe workaround for weld:
public class QuartzSchedulerProducer
{
@Produces
@ApplicationScoped
protected Scheduler<Job> produceScheduler(Scheduler scheduler)
{
return scheduler;
}
}
> WELD-001408: Unsatisfied dependencies for type Scheduler<Job>
> --------------------------------------------------------------
>
> Key: DELTASPIKE-548
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-548
> Project: DeltaSpike
> Issue Type: Bug
> Components: Scheduler
> Affects Versions: 0.7
> Environment: Wildfly 8
> Reporter: Piotr Dudkiewicz
> Priority: Minor
>
> SchedulerProducer produces Scheduler and WELD-001408 is thrown when using example from documentation
> @Inject
> private Scheduler<Job> jobScheduler;
> Workaround:
> @Inject
> private Scheduler jobScheduler;
--
This message was sent by Atlassian JIRA
(v6.2#6252)