1 Component infrastructure
2 * support simple component
3 - requires through constructor
4 - provides through getters
5 * optional start and stop methods
6 * giving names to a component must be optional
7 * support for cached components and non-cached components.
10 - Annotaties definieren
16 public MyComponent(Def aArg, Ghi aArg2) {
19 @Provided(name = "name")
23 public void myStart(); // Unlike the component
26 - Algemene classes maken die de constructor, start method, en
27 methodes identificeren om de component als Component te benaderen.
28 in een object, samen met een wrapper die deze info gebruikt om het
29 object als Component te exportern.
30 Er moet ook een wrapper zijn voor reeds geinstantieerde objecten.
32 - wrapper maken die geannoteerde classes interpreteert en via de eerdere
33 wrapper het object ontsluiten als component.
34 Zowel geinstantieerde objecten als classes ondersteunen.
36 - add support for private setters.
37 - add support or exposing provided services
38 - superclass or interface of the concrete type instead of the concrete type
39 or not based on the concrete type at all.
41 - add support for field injection.
43 - add support for annotation based configuration instead of API-based
45 - add support for type conversions.
47 - add support for multiplicity.
49 - add support for aggregating multiple servicss.
51 - add support for explicitly configuring which provided interface of
52 a container is provided by which internal service.
54 - do not use equality but use logic for matching external required and
55 provided interfaces of a container.
57 e.g. a service T provided by a container can be provided by a service
58 U that provides subclasses of the provided interfaces of T
60 a service T required by a component inside a container is covered
61 by stronger requirements for subclasses of T.
63 - separate logic for connecting required and provided interfaces
64 through a general graph model of the application.
65 Then use generic filters, validations, and graph traversal APIs
66 to implement the current functionality in the container.