Package org.apache.maven.cling.invoker
Class ProtoLookup
java.lang.Object
org.apache.maven.cling.invoker.ProtoLookup
Proto-
Lookup
offer ways to provide early components to invoker.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProtoLookup.Builder
builder()
<T> T
Performs a lookup for given typed component.<T> T
Performs 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 name) Performs a lookup for optional typed component.
-
Method Details
-
lookup
Description copied from interface:Lookup
Performs a lookup for given typed component. -
lookup
Description copied from interface:Lookup
Performs a lookup for given typed component. -
lookupOptional
Description copied from interface:Lookup
Performs a lookup for optional typed component.- Specified by:
lookupOptional
in 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:Lookup
Performs a lookup for optional typed component.- Specified by:
lookupOptional
in interfaceLookup
- Type Parameters:
T
- The component type.- Parameters:
type
- The component type.name
- The component name.- Returns:
- Optional carrying component or empty optional if no such component.
-
lookupList
Description copied from interface:Lookup
Performs a collection lookup for given typed components.- Specified by:
lookupList
in 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:Lookup
Performs a collection lookup for given typed components. -
builder
-