public class ServiceInjector extends Object implements org.ops4j.pax.exam.util.Injector
Inject. This includes
the fields of all superclasses. By default, the Injector will wait for a given timeout if no
matching service is available.
If the field has no Filter annotation, the service will be looked up by type with a
filter (objectClass=<type>). If the field has Filter annotation with a non empty
value, this partial filter string will be taken to build a composite filter of the form
(&(objectClass=<type>)<filter>).
If there is more than one matching service, the first one obtained from the service registry will be injected.
Fields of type BundleContext will be injected with the BundleContext passed to this
Injector.
Constructor, setter or parameter injection is not supported.
| Constructor and Description |
|---|
ServiceInjector() |
public void injectFields(Object target)
injectFields in interface org.ops4j.pax.exam.util.InjectorCopyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.