Silk DI 0.6


se.jbee.inject
Interface PreciserThan<T extends PreciserThan<T>>

Type Parameters:
T - The type of objects that are compared
All Known Implementing Classes:
DeclarationType, Instance, Instances, Name, Packages, Resource, Source, Target, Type

public interface PreciserThan<T extends PreciserThan<T>>

When determining what Resource is used to inject a Dependency everything is sorted by its Precision. The most precise matching will be used to inject.

Author:
Jan Bernitt (jan@jbee.se)

Method Summary
 boolean morePreciseThan(T other)
           
 

Method Detail

morePreciseThan

boolean morePreciseThan(T other)
Returns:
Whether or not this object or more precise than the given one. Equal objects are not more precise! Also objects that have no common context or relationship are never more precise. An example would be that two Types with no common super-type do not define one of them that is more precise.

Silk DI 0.6