Class ProtoLookup
java.lang.Object
org.apache.maven.cling.invoker.ProtoLookup
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtoLookup.Builderbuilder()<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 name) Performs a lookup for optional typed component.
-
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.name- 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. -
builder
-