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..
}
Modifier and Type | Method and Description |
---|---|
void |
set(T value) |
void set(T value)
Copyright © 2016 JBoss by Red Hat. All rights reserved.