{ Wiki Markup
Scrollbar |
---|
Injection in Tapestry IoC can be a complicated subject for a number of reasons:
...
As a chain-of-command, each of the following ObjectProviders will be considered and will attempt to identify the object to be injected.
Note |
---|
A common problem when extending injection is that contributions into the MasterObjectProvider configuration have to be handled carefully. Any dependencies of the contributed objects should be resolvable using only the early stages of the injection process, otherwise MasterObjectProvider will have to be instantiated in order to handle its own injection: Tapestry will detect this impossibility and throw an exception. In addition, thethe TypeCoercer serviceService is used by several ObjectProvider implementations, so the same restrictions apply to TypeCoercer service contributions. |
Value ObjectProvider
Checks for the presence of the @Value annotation. If present, then the annotation's value is evaluated (to expand any symbol references), and the TypeCoercer service is used to convert the resulting String to the injection type (the field or parameter type).
...
You may use the @InjectService annotation on component fields.
Scrollbar |
---|