| Modifier and Type | Method and Description |
|---|---|
Object |
createOrFindService(Injectee injectee,
ServiceHandle<?> root)
Given an injectee create and cache or resolve the service associated with
it.
|
Object |
findOrCreateCollaborator(int position,
String fieldName,
Injectee injectee,
ServiceHandle<?> root)
Given metadata about collaborator and an injectee create or resolve the
collaborating service.
|
Object |
findOrCreateSUT(Injectee injectee,
ServiceHandle<?> root)
Given an SUT annotation and an injectee resolve the service associated
with the injectee and use the metadata in the SUT annotation to possibly
create a mockito spy.
|
public Object findOrCreateSUT(Injectee injectee, ServiceHandle<?> root)
injectee - The injection point this value is being injected intoroot - The service handle of the root class being createdpublic Object createOrFindService(Injectee injectee, ServiceHandle<?> root)
injectee - The injection point this value is being injected intoroot - The service handle of the root class being createdpublic Object findOrCreateCollaborator(int position, String fieldName, Injectee injectee, ServiceHandle<?> root)
position - method or constructor the parameter position metadatafieldName - field name metadatainjectee - The injection point this value is being injected intoroot - The service handle of the root class being createdCopyright © 2009–2020 Oracle Corporation. All rights reserved.