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..
}
void set(T value)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.