org.jboss.arquillian.core.api
Interface InstanceProducer<T>

All Superinterfaces:
Instance<T>
All Known Implementing Classes:
InstanceImpl

public interface InstanceProducer<T>
extends Instance<T>

 @Inject @ApplicationScoped
 private InstanceProducer<MyObject> myObjectInst;

 public void listen(@Observes OtherEvent otherEvent) {
     // do something..
     myObjectInst.set(new MyObject());
     // do something..
 }
 
 

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 void set(T value)
           
 
Methods inherited from interface org.jboss.arquillian.core.api.Instance
get
 

Method Detail

set

void set(T value)


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.