se.jbee.inject.bootstrap
Interface Inspector
- All Known Implementing Classes:
- Inspect
public interface Inspector
A strategy to extract missing information from types that is used within the Binder to
allow semi-automatic bindings.
- Author:
- Jan Bernitt (jan@jbee.se)
constructorFor
<T> Constructor<T> constructorFor(Class<T> type)
- Picks the
Constructor to use to construct objects of a given Class.
- Returns:
- The
Constructor considered to be the reasonable or right way to construct a
object of the given type. In case one with parameters is returned the process will
try to resolve them.
methodsIn
<T> Method[] methodsIn(Class<T> implementor)
- Returns:
- The
Members that should be bound from the given implementor.
nameFor
Name nameFor(AccessibleObject obj)
- Returns:
- The
Name of the instance provided by the given object. Use
Name.DEFAULT for no specific name.
parametersFor
Parameter<?>[] parametersFor(AccessibleObject obj)
- Returns:
- The
Parameter hints for the construction/invocation of the given object. Use
a zero length array if there are no hits.