V30-experimental retired » History » Version 10
Henning Blohm, 12.11.2014 20:05
1 | 1 | Henning Blohm | h1. Z2-Environment version 3.0 |
---|---|---|---|
2 | |||
3 | Version 3.0 is in progress |
||
4 | |||
5 | 3 | Henning Blohm | The main goals for 3.0 is to provide features that simplify user adoption. |
6 | |||
7 | 9 | Henning Blohm | h2. Simplified Entry-Level Operations |
8 | 3 | Henning Blohm | |
9 | In order to reduce the initial usage barrier, the following should be possible (or simplified) |
||
10 | |||
11 | * Have a system layout consisting of a number of auto-discovered co-located file system repositories |
||
12 | ** Much like the dev repo but actually based on the FSCR and "always armed" |
||
13 | ** Benefit: Supports Git-branching approaches out of the box |
||
14 | ** Benefit: Allows System Releases as a single ZIP to be exploded without any online access (a regular "copy" deployment) |
||
15 | |||
16 | * Provide consistent and complete system export |
||
17 | ** Support binary or source-preserving export |
||
18 | ** Provide clean component name escaping so we can also export mvn-provided artifacts if desired |
||
19 | ** so we can offer a complete base distribution as binary download |
||
20 | ** Running samples means to clone co-located Git Repos |
||
21 | 1 | Henning Blohm | ** Make re-binding of repository locations simpler (e.g. a remote repo becomes a local FS repo after export) |
22 | 5 | Henning Blohm | |
23 | 6 | Henning Blohm | * Support single-process mode (e.g. no Worker mode - move worker support into an add-on) |
24 | 3 | Henning Blohm | |
25 | h2. Free Web Container Choice |
||
26 | 1 | Henning Blohm | |
27 | 4 | Henning Blohm | It should be possible to use a Web Container of choice, as long as it is Jetty or Tomcat. Our tests indicate that it should be simple to programmatically control any pre-installed instance. |
28 | 1 | Henning Blohm | |
29 | 4 | Henning Blohm | * Provide a web container resource that hooks up with a pre-configured web container OR a self-hosted web container |
30 | * This will require some creative business with the servlet/jsp and Web Container class path |
||
31 | |||
32 | h2. Improvements |
||
33 | 1 | Henning Blohm | |
34 | 7 | Henning Blohm | * Provide a z2 for dummies introduction that starts with simple, include-based web apps |
35 | 1 | Henning Blohm | * Seamless support of Maven repositories (see [[V23]], [[maven_repo_support]]) |
36 | 7 | Henning Blohm | ** Including install into repository from z2 |
37 | * Use string revisions rather than longs (so that natural versions are better supported) |
||
38 | 1 | Henning Blohm | * Introduce "Java Templates", Java (and others) Component configuration made simpler (see [[smart_props]]) |
39 | 2 | Henning Blohm | * Port add-ons and samples to maven repos for external artifacts |
40 | 8 | Henning Blohm | |
41 | h2. Proposals |
||
42 | |||
43 | h3. Local Install Layout |
||
44 | |||
45 | By means module virtualization (already today via the module name property of the dev repo) we can essentially turn anything that has a "z.properties" into a component and use a declared name as the module "namespace". |
||
46 | |||
47 | Combined with an "adapter component type" concept we can introduce for example |
||
48 | |||
49 | * Tomcat Adapter Component: Tells the Tomcat based web container integration about the location of a Tomcat installation. |
||
50 | * and similarly for other component types that depend on "local/external" defined resources |
||
51 | |||
52 | The follwing _typical_ layout is suggested: |
||
53 | |||
54 | <pre> |
||
55 | +-<tomcat-folder> |
||
56 | | +- z.properties (adapter declaration) |
||
57 | | +- LOCAL (tagging) |
||
58 | | +- <whatever tomcat stuff> |
||
59 | | |
||
60 | +-zlight |
||
61 | | +-zlight.core (core) |
||
62 | | +-zlight.base (base stuff) |
||
63 | | +-<more fs repos> |
||
64 | | |
||
65 | +-<armed module 1> |
||
66 | +-<armed module 2> |
||
67 | | |
||
68 | +-<git repo 1> |
||
69 | </pre> |
||
70 | |||
71 | h3. Web Container Integration |
||
72 | |||
73 | As outlined above, we will support re-use of existing pre-configured web container instances. |
||
74 | |||
75 | h3. Repository Export |
||
76 | |||
77 | We will enhance the repository export so that given a number of repository component names (possibly including mvn repos), a complete export, in source or binary, will be put into a structure as outlined above. |
||
78 | |||
79 | * Repository Component Names can be mapped |
||
80 | 1 | Henning Blohm | * We will introduce a component name escaping pattern to support maven originated components as well |
81 | 10 | Henning Blohm | |
82 | h3. Review of Software Component Responsibilities |
||
83 | |||
84 | +core+ |
||
85 | |||
86 | * Component and Module Model |
||
87 | * Component Types: |
||
88 | ** System State |
||
89 | ** Java / Compiler |
||
90 | ** "main" programs |
||
91 | ** "any" |
||
92 | |||
93 | +base+ |
||
94 | |||
95 | ... |