Package org.apache.maven.internal.impl
Class DefaultLookup
java.lang.Object
org.apache.maven.internal.impl.DefaultLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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.
-
Constructor Details
-
DefaultLookup
@Inject public DefaultLookup(org.codehaus.plexus.PlexusContainer container)
-
-
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.
-