@Retention(value=RUNTIME) @Target(value={PARAMETER,FIELD,ANNOTATION_TYPE}) public @interface Filter
Can be used to specify an OSGi service filter to narrow the service(s) that shall be injected.
@javax.inject.Inject
@Filter
("(&(property=value)(otherProperty=otherValue))")
private SomeService service;
This annotation can not be used on a Spring bean. There, use an XML configuration or the gemini blueprint @ServiceReference annotation.public abstract String value
Copyright © 2024. All rights reserved.