it depends on the architecture that you will follow for AEM headless. Now a days sling model exporter are being preferred in headless architecture on which you can directly inject any component or service via annotation and in this case you can import it as@inject@filter("(component.name=org.apache....