Package org.int4.dirk.core.discovery
Interface Discoverer
-
public interface DiscovererPotentially discovers additionalInjectables. Any problems that may be of interest after discovery are reported viagetProblems().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<Injectable<?>>discover()Discovers additionalInjectables.java.util.List<java.lang.String>getProblems()Returns a list of problems encountered during discovery.
-
-
-
Method Detail
-
discover
java.util.Set<Injectable<?>> discover() throws org.int4.dirk.api.definition.DefinitionException
Discovers additionalInjectables. If completed successfully, subsequent calls will return the original result, otherwise undefined.- Returns:
- a set of
Injectablethat were discovered, nevernullor containsnullbut can be empty - Throws:
org.int4.dirk.api.definition.DefinitionException- when a definition problem was encountered
-
getProblems
java.util.List<java.lang.String> getProblems()
Returns a list of problems encountered during discovery. Note that if auto discovery is off this list is guaranteed to be empty. If not empty, callers would do well to include the list of problems in their final exception message.- Returns:
- a list of problems, never
nullor containsnullbut can be empty - Throws:
java.lang.IllegalStateException- when called before callingdiscover()
-
-