|
Silk DI 0.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectse.jbee.inject.Resource<T>
public final class Resource<T>
Describes WHAT can be injected and WHERE it can be injected.
It is an Instance with added information where the bind applies.
| Constructor Summary | |
|---|---|
Resource(Instance<T> instance)
|
|
Resource(Instance<T> instance,
Target target)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equalTo(Resource<?> other)
|
|
Instance<T> |
getInstance()
|
|
Name |
getName()
|
|
Target |
getTarget()
|
|
Type<T> |
getType()
|
|
boolean |
isAdequateFor(Dependency<? super T> dependency)
Does this resource provide the instance wanted by the given Dependency's Name |
|
boolean |
isApplicableFor(Dependency<? super T> dependency)
|
|
boolean |
isAssignableTo(Dependency<? super T> dependency)
Does the Type of this a valid argument for the one of the Dependency given ? |
|
boolean |
isAvailableFor(Dependency<? super T> dependency)
Does the given Dependency occur in the right package and for the right target ? |
|
boolean |
isSuitableFor(Dependency<? super T> dependency)
|
|
boolean |
morePreciseThan(Resource<?> other)
|
|
static
|
resource(Class<T> type)
|
|
String |
toString()
|
|
|
typed(Type<E> type)
|
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resource(Instance<T> instance)
public Resource(Instance<T> instance,
Target target)
| Method Detail |
|---|
public static <T> Resource<T> resource(Class<T> type)
public boolean isApplicableFor(Dependency<? super T> dependency)
public boolean isSuitableFor(Dependency<? super T> dependency)
public boolean isAssignableTo(Dependency<? super T> dependency)
Type of this a valid argument for the one of the Dependency given ?
public boolean isAvailableFor(Dependency<? super T> dependency)
Dependency occur in the right package and for the right target ?
public boolean isAdequateFor(Dependency<? super T> dependency)
Dependency's Name
public Type<T> getType()
getType in interface Typed<T>Type of this object.public boolean morePreciseThan(Resource<?> other)
morePreciseThan in interface PreciserThan<Resource<?>>Types with no common super-type do not
define one of them that is more precise.public String toString()
toString in class Objectpublic Name getName()
getName in interface NamedInstance / Resource.public Instance<T> getInstance()
public Target getTarget()
public <E> Resource<E> typed(Type<E> type)
typed in interface Typed<T>Type.public boolean equalTo(Resource<?> other)
|
Silk DI 0.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||