public final class

Hints

extends Object
java.lang.Object
   ↳ org.eclipse.sisu.plexus.Hints

Class Overview

Constants and utility methods for dealing with Plexus hints.

Summary

Constants
String DEFAULT_HINT
Fields
public static final String[] NO_HINTS
Public Methods
static String canonicalHint(String hint)
Returns the canonical form of the given Plexus hint.
static String[] canonicalHints(Requirement requirement)
Returns the Plexus hints contained in the given @Requirement.
static String[] canonicalHints(String... hints)
Returns the canonical form of the given Plexus hints.
static List<String> canonicalHints(List<String> hints)
Returns the canonical form of the given Plexus hints.
static boolean isDefaultHint(String hint)
Determines if the given Plexus hint denotes the default component.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DEFAULT_HINT

Constant Value: "default"

Fields

public static final String[] NO_HINTS

Public Methods

public static String canonicalHint (String hint)

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

public static String[] canonicalHints (Requirement requirement)

Returns the Plexus hints contained in the given @Requirement.

Parameters
requirement The Plexus requirement
Returns
  • Array of canonical hints

public static String[] canonicalHints (String... hints)

Returns the canonical form of the given Plexus hints.

Parameters
hints The Plexus hints
Returns
  • Array of canonical hints

public static List<String> canonicalHints (List<String> hints)

Returns the canonical form of the given Plexus hints.

Parameters
hints The Plexus hints
Returns
  • List of canonical hints

public static boolean isDefaultHint (String hint)

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