Skip to content

OSGi current recommended usage patterns and 'how to' s.

Gordon Hutchison edited this page May 4, 2023 · 7 revisions

Getting hold of mandatory static references

For mandatory static references the preferred way to inject is to use constructor injection:

@Activate
public NettyFrameworkImpl(@Reference ExecutorService executorService) {
    this.executorService = executorService;
}
Clone this wiki locally