se.jbee.inject
Interface Parameter<T>
- All Superinterfaces:
- Typed<T>
- All Known Implementing Classes:
- Dependency, Instance, Type
public interface Parameter<T>
- extends Typed<T>
Parameters are *not* about to find/identify the Constructor to use! This
would get far to complex to understand (yet simple to implement) using different constructors
depending on the Parameters.
Parameters identify the Instance to use for the constructor.
How Parameters are understood:
- A
Class (via Type)
- Use the default instance of the given Class
- A
Type
- Use the default instance of the given Type (needed for generic classes)
- An
Instance
- Use the instance identified by the given Instance
- A
Dependency
- Use the instance resolved by the given Dependency (finest level of control)
- An instance
Object
- Use the given Object (for the first parameter it is assignable to)
- Author:
- Jan Bernitt (jan@jbee.se)
isAssignableTo
boolean isAssignableTo(Type<?> type)