T - the configuration data type returned by this Sourcepublic abstract class AbstractSource<T> extends Object implements Source<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode() |
T |
load(Mapper<T> mapper,
boolean optional)
Applies a specific configuration loading strategy and returns a mapped bean containing
the retrieved data.
|
String |
toString() |
public T load(Mapper<T> mapper, boolean optional)
Sourceoptional parameter is true and the operation
fails, this method returns null.load in interface Source<T>mapper - the Mapper to be applied on the source input streamoptional - a flag indicating whether or not an exception should be thrown in an
event of failure to load the configuration sourcenull in an event of failure if the
optional flag set as truepublic boolean equals(Object other)
Two Source objects can be considered equal if both share the same
implementation and parameter/path.
Copyright © 2021. All rights reserved.