Class RepositoryConfiguration
java.lang.Object
org.springframework.boot.cli.compiler.grape.RepositoryConfiguration
The configuration of a repository.
- Since:
- 1.0.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionRepositoryConfiguration
(String name, URI uri, boolean snapshotsEnabled) Creates a newRepositoryConfiguration
instance. -
Method Summary
-
Constructor Details
-
RepositoryConfiguration
Creates a newRepositoryConfiguration
instance.- Parameters:
name
- the name of the repositoryuri
- the uri of the repositorysnapshotsEnabled
-true
if the repository should enable access to snapshots,false
otherwise
-
-
Method Details
-
getName
Return the name of the repository.- Returns:
- the repository name
-
getUri
Return the URI of the repository.- Returns:
- the repository URI
-
getSnapshotsEnabled
public boolean getSnapshotsEnabled()Return if the repository should enable access to snapshots.- Returns:
true
if snapshot access is enabled
-
equals
-
hashCode
public int hashCode() -
toString
-