public interface Injector
@Inject
private Instance<Injector> inst;
public void listen(@Observes OtherEvent otherEvent) {
// do something..
inst.get().inject(new MyInjectableObject()).performSomeOperation();
// do something..
}
Modifier and Type | Method and Description |
---|---|
<T> T |
inject(T target) |
Copyright © 2016 JBoss by Red Hat. All rights reserved.