se.jbee.inject.util
Class Suppliable<T>
Object
se.jbee.inject.util.Suppliable<T>
- All Implemented Interfaces:
- Resourced<T>
public final class Suppliable<T>
- extends Object
- implements Resourced<T>
Describing data of something that can be supplied.
It describes WHAT is supplied, HOW to supply it and how stable it is and WHERE it came from.
- Author:
- Jan Bernitt (jan@jbee.se)
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
resource
public final Resource<T> resource
supplier
public final Supplier<? extends T> supplier
repository
public final Repository repository
source
public final Source source
expiry
public final Expiry expiry
Suppliable
public Suppliable(Resource<T> resource,
Supplier<? extends T> supplier,
Repository repository,
Expiry expiry,
Source source)
source
public static InjectronSource source(Suppliable<?>[] suppliables)
toString
public String toString()
- Overrides:
toString in class Object
getResource
public Resource<T> getResource()
- Specified by:
getResource in interface Resourced<T>
- Returns:
- The
Resource of this compound.