Class LookupStub
java.lang.Object
org.apache.maven.api.plugin.testing.stubs.LookupStub
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TPerforms a lookup for given typed component.<T> TPerforms a lookup for given typed component.<T> List<T> lookupList(Class<T> type) Performs a collection lookup for given typed components.Performs a collection lookup for given typed components.<T> Optional<T> lookupOptional(Class<T> type) Performs a lookup for optional typed component.<T> Optional<T> lookupOptional(Class<T> type, String string) Performs a lookup for optional typed component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
LookupStub
protected LookupStub()For sub-class constructors.
-
-
Method Details
-
lookup
-
lookup
Description copied from interface:LookupPerforms a lookup for given typed component. -
lookupOptional
Description copied from interface:LookupPerforms a lookup for optional typed component.- Specified by:
lookupOptionalin interfaceLookup- Type Parameters:
T- The component type.- Parameters:
type- The component type.- Returns:
- Optional carrying component or empty optional if no such component.
-
lookupOptional
Description copied from interface:LookupPerforms a lookup for optional typed component.- Specified by:
lookupOptionalin interfaceLookup- Type Parameters:
T- The component type.- Parameters:
type- The component type.string- The component name.- Returns:
- Optional carrying component or empty optional if no such component.
-
lookupList
Description copied from interface:LookupPerforms a collection lookup for given typed components.- Specified by:
lookupListin interfaceLookup- Type Parameters:
T- The component type.- Parameters:
type- The component type.- Returns:
- The list of components. The list may be empty if no components found.
-
lookupMap
Description copied from interface:LookupPerforms a collection lookup for given typed components.
-