2 opzoeken waar de provided interfaces van de scope gebruikt worden, als het
3 goed is nog nergens. Scope moet een Component worden en publiceren van een
4 interface leidt tot een nieuw provided interface.
6 Component infrastructure
7 * support simple component
8 - requires through constructor
9 - provides through getters
10 * optional start and stop methods
11 * giving names to a component must be optional
12 * support for cached components and non-cached components.
15 - Annotaties definieren
21 public MyComponent(Def aArg, Ghi aArg2) {
24 @Provided(name = "name")
28 public void myStart(); // Unlike the component
31 - Algemene classes maken die de constructor, start method, en
32 methodes identificeren om de component als Component te benaderen.
33 in een object, samen met een wrapper die deze info gebruikt om het
34 object als Component te exportern.
35 Er moet ook een wrapper zijn voor reeds geinstantieerde objecten.
37 - wrapper maken die geannoteerde classes interpreteert en via de eerdere
38 wrapper het object ontsluiten als component.
39 Zowel geinstantieerde objecten als classes ondersteunen.
41 - add support for private setters.
42 - add support or exposing provided services
43 - superclass or interface of the concrete type instead of the concrete type
44 or not based on the concrete type at all.
46 - add support for field injection.
48 - add support for annotation based configuration instead of API-based
50 - add support for type conversions.
52 - add support for multiplicity.
54 - add support for aggregating multiple servicss.
56 - add support for explicitly configuring which provided interface of
57 a container is provided by which internal service.
59 - do not use equality but use logic for matching external required and
60 provided interfaces of a container.
62 e.g. a service T provided by a container can be provided by a service
63 U that provides subclasses of the provided interfaces of T
65 a service T required by a component inside a container is covered
66 by stronger requirements for subclasses of T.
68 - separate logic for connecting required and provided interfaces
69 through a general graph model of the application.
70 Then use generic filters, validations, and graph traversal APIs
71 to implement the current functionality in the container.