Package org.eclipse.aether.repository
Enum RemoteRepository.Intent
- java.lang.Object
-
- java.lang.Enum<RemoteRepository.Intent>
-
- org.eclipse.aether.repository.RemoteRepository.Intent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RemoteRepository.Intent>
- Enclosing class:
- RemoteRepository
public static enum RemoteRepository.Intent extends java.lang.Enum<RemoteRepository.Intent>
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, butRepositorySystemwill process them anyway, marking their "intent".Important consequence: the change of
RemoteRepository.Intenton repository may affect the use cases when they are used as keys (they are suitable for that). To useRemoteRepositoryinstances as key, you should use instances returned by methodRemoteRepository.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()).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAREDEPLOYMENTRESOLUTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemoteRepository.IntentvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RemoteRepository.Intent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BARE
public static final RemoteRepository.Intent BARE
-
RESOLUTION
public static final RemoteRepository.Intent RESOLUTION
-
DEPLOYMENT
public static final RemoteRepository.Intent DEPLOYMENT
-
-
Method Detail
-
values
public static RemoteRepository.Intent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RemoteRepository.Intent c : RemoteRepository.Intent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RemoteRepository.Intent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-