Package org.int4.dirk.core.discovery
Interface DiscovererFactory
-
public interface DiscovererFactoryGathers fully expanded sets ofInjectables based on the given inputs.A distinction is made between derived and discovered injectables. Derived injectables are detected by examining a given
Type, for example through annotations. Discovered injectables are injectables created for unresolved bindings of an input or derived injectable.Derivation always takes precedence over discovery.
Implementations of this interface can scan given types (ie. for annotations) to derive further injectables that can be supplied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Discoverercreate(Resolver<Injectable<?>> resolver, java.util.Collection<java.lang.reflect.Type> types)Given a list ofTypes, returns aDiscovererwhich will produce injectables for each of the types given and all injectables that could be derived or discovered using the given types as starting point.Discoverercreate(Resolver<Injectable<?>> resolver, Injectable<?> injectable)Given anInjectable, returns aDiscovererwhich will produce the given injectable and all injectables that could be derived or discovered using the injectable as starting point.
-
-
-
Method Detail
-
create
Discoverer create(Resolver<Injectable<?>> resolver, Injectable<?> injectable)
Given anInjectable, returns aDiscovererwhich will produce the given injectable and all injectables that could be derived or discovered using the injectable as starting point.- Parameters:
resolver- aResolver, cannot benullinjectable- a list ofTypes, cannot benullor containnulls- Returns:
- a
Discoverer, nevernull
-
create
Discoverer create(Resolver<Injectable<?>> resolver, java.util.Collection<java.lang.reflect.Type> types)
Given a list ofTypes, returns aDiscovererwhich will produce injectables for each of the types given and all injectables that could be derived or discovered using the given types as starting point.- Parameters:
resolver- aResolver, cannot benulltypes- a collection ofTypes, cannot benullor containnulls- Returns:
- a
Discoverer, nevernull
-
-