A bean socket represents a bean dependency, a bean required or desirable by a bean to operate properly. Sockets are basically defined to connect beans together through dependency injection. By convention, constructor arguments and setter methods are implicit bean sockets. This annotation must be used on a constructor or a method to make it explicit in case of ambiguities.
An ambiguity arises when a bean defines more than one constructor which can be removed by annotating the right constructor.
Ambiguities can also arise when some setter methods must not be considered as bean sockets. In that case, you must explicitly annotate the setter methods to consider.
- Since:
- 1.0
- Author:
- Jeremy Kuhn