Interface PrefixesSource
-
public interface PrefixesSource
Prefixes source and parser.This class is "clean room" reimplementation of original class.
- Since:
- 2.0.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPrefixesSource.Parser
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>entries()The prefix entries.java.lang.Stringmessage()Message worth logging ifvalid()returnsfalse.static PrefixesSourceof(org.eclipse.aether.repository.RemoteRepository origin, java.nio.file.Path path)CreatesPrefixesSourceout of passed in parameters, never returnsnull.org.eclipse.aether.repository.RemoteRepositoryorigin()The origin repository of this source.java.nio.file.Pathpath()The file path (ie local repository or user provided one) this source got entries from.booleanvalid()Returnstrueif source is valid and contains valid entries.
-
-
-
Method Detail
-
origin
org.eclipse.aether.repository.RemoteRepository origin()
The origin repository of this source.
-
path
java.nio.file.Path path()
The file path (ie local repository or user provided one) this source got entries from.
-
valid
boolean valid()
Returnstrueif source is valid and contains valid entries.
-
entries
java.util.List<java.lang.String> entries()
The prefix entries.
-
of
static PrefixesSource of(org.eclipse.aether.repository.RemoteRepository origin, java.nio.file.Path path)
CreatesPrefixesSourceout of passed in parameters, never returnsnull. The returned source should be checked forvalid()and use only if it returnstrue.This method is "forgiving" to all kind of IO problems while reading (file not found, etc.) and will never throw
IOExceptionas prefix file processing should not interrupt main flow due which prefix file processing is happening in the first place. Ideally, user is notified at least by logging if any problem happens.
-
-