Package org.eclipse.aether.repository
Enum Class RemoteRepository.Intent
- All Implemented Interfaces:
Serializable,Comparable<RemoteRepository.Intent>,Constable
- Enclosing class:
RemoteRepository
The intent this repository is to be used for. Newly created repositories are usually "bare", and before
their actual use (caller or repository system) adapts them, equip with auth/proxy info and even mirrors, if
environment is configured for them. Note: "bare" does not always mean "without authentication", as client
code may create with all required properties, but
RepositorySystem will process
them anyway, marking their "intent".
Important consequence: the change of RemoteRepository.Intent on repository may affect the use cases when
they are used as keys (they are suitable for that). To use RemoteRepository instances as key,
you should use instances returned by method RemoteRepository.toBareRemoteRepository(), that returns "normalized"
repository instances usable as keys. Also, in "key usage case" two instances of remote repository are
considered equal if following stands: Objects.equals(r1.toBareRemoteRepository(), r2.toBareRemoteRepository()).
- Since:
- 2.0.14
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteRepository.IntentReturns the enum constant of this class with the specified name.static RemoteRepository.Intent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BARE
-
RESOLUTION
-
DEPLOYMENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-