Aslak Knutsen created ARQ-1732:
----------------------------------
Summary: Support the use of Future from ExecutorService in InstanceProducer
Key: ARQ-1732
URL:
https://issues.jboss.org/browse/ARQ-1732
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Base Implementation
Affects Versions: 1.1.4.Final
Reporter: Aslak Knutsen
Fix For: 2.0.0.Beta1
Open InstanceProducer with a option to set(Future<T>).
@Inject
Instance<T> inst; inst.get() would call future.get();
Would allow for background creation of any exposed contextual object.
{code}
@Inject @TestScoped
private InstanceProducer<T> producer;
@Inject
private Instance<ExecutorService> executor;
producer.set(executor.submit(Callable<T>))
{code}
Questions:
When is fire(T) called, when set(Future<T>) as now, or when Future is resovled?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira