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 12:03:15 UTC
[jira] [Comment Edited] (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 edited comment on DELTASPIKE-548 at 3/28/14 11:02 AM:
-----------------------------------------------------------------------
a type-safe workaround for weld:
{code}
public class QuartzSchedulerProducer
{
@Produces
@ApplicationScoped
protected Scheduler<Job> produceScheduler(Scheduler scheduler)
{
return scheduler;
}
}
{code}
was (Author: gpetracek):
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.6
> Environment: Wildfly 8
> Reporter: Piotr Dudkiewicz
> Assignee: Gerhard Petracek
> Priority: Minor
> Fix For: 0.7
>
>
> 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)