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 -
Method Summary
Modifier and TypeMethodDescriptionentries()The prefix entries.message()Message worth logging ifvalid()returnsfalse.static PrefixesSourceCreatesPrefixesSourceout of passed in parameters, never returnsnull.org.eclipse.aether.repository.RemoteRepositoryorigin()The origin repository of this source.path()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 Details
-
origin
org.eclipse.aether.repository.RemoteRepository origin()The origin repository of this source. -
path
The file path (ie local repository or user provided one) this source got entries from. -
message
Message worth logging ifvalid()returnsfalse. -
valid
boolean valid()Returnstrueif source is valid and contains valid entries. -
entries
The prefix entries. -
of
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.
-