Package org.eclipse.sisu.plexus
Class Hints
java.lang.Object
org.eclipse.sisu.plexus.Hints
Constants and utility methods for dealing with Plexus hints.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
canonicalHint
(String hint) Returns the canonical form of the given Plexus hint.static String[]
canonicalHints
(String... hints) Returns the canonical form of the given Plexus hints.canonicalHints
(List<String> hints) Returns the canonical form of the given Plexus hints.static String[]
canonicalHints
(org.codehaus.plexus.component.annotations.Requirement requirement) Returns the Plexus hints contained in the given @Requirement
.static boolean
isDefaultHint
(String hint) Determines if the given Plexus hint denotes the default component.
-
Field Details
-
NO_HINTS
-
DEFAULT_HINT
- See Also:
-
NO_HINTS_LIST
-
-
Constructor Details
-
Hints
private Hints()
-
-
Method Details
-
canonicalHint
Returns the canonical form of the given Plexus hint.- Parameters:
hint
- The Plexus hint- Returns:
- Canonical hint denoting the same component as the given hint
-
isDefaultHint
Determines if the given Plexus hint denotes the default component.- Parameters:
hint
- The Plexus hint- Returns:
true
if the given hint denotes the default component
-
canonicalHints
Returns the canonical form of the given Plexus hints.- Parameters:
hints
- The Plexus hints- Returns:
- Array of canonical hints
-
canonicalHints
Returns the canonical form of the given Plexus hints.- Parameters:
hints
- The Plexus hints- Returns:
- List of canonical hints
-
canonicalHints
public static String[] canonicalHints(org.codehaus.plexus.component.annotations.Requirement requirement) Returns the Plexus hints contained in the given @Requirement
.- Parameters:
requirement
- The Plexus requirement- Returns:
- Array of canonical hints
-