Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
jvx:code_snippets [2020/06/12 15:19] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
jvx:code_snippets [2020/07/01 13:37] cduncan [EventHandler With Listener Interface] |
||
---|---|---|---|
Line 121: | Line 121: | ||
Tests our business logic not with an application server, but with our Lifecycle objects. We test our server code without specific configuration or modifications for unit tests. | Tests our business logic not with an application server, but with our Lifecycle objects. We test our server code without specific configuration or modifications for unit tests. | ||
- | Business Object: | + | Business object: |
<file java UserRegistration.java> | <file java UserRegistration.java> | ||
Line 166: | Line 166: | ||
</file> | </file> | ||
- | A standard Lifecycle Object: | + | A standard life cycle object: |
<file java Session.java> | <file java Session.java> | ||
Line 232: | Line 232: | ||
</file> | </file> | ||
- | Unit Test: | + | Unit test: |
<file java> | <file java> | ||
Line 291: | Line 291: | ||
==== A Very Simple AbstractMemStorage Implementation ==== | ==== A Very Simple AbstractMemStorage Implementation ==== | ||
- | A server-side memory storage with the column names: ID, NAME, PATH. The column PATH is not visible on the client-side, but is important for server-side. If "error" is set as NAME, an exception is thrown! | + | A server-side memory storage with the column names: ID, NAME, PATH. The column PATH is not visible on the client side, but is important for server side. If "error" is set as NAME, an exception is thrown! |
<file java SimpleMemStorage.java> | <file java SimpleMemStorage.java> | ||
Line 368: | Line 368: | ||
==== Change XML Files Quickly ==== | ==== Change XML Files Quickly ==== | ||
- | Our XML file | + | Our XML file: |
<file xml> | <file xml> | ||
Line 535: | Line 535: | ||
</file> | </file> | ||
- | Dispatch Events: | + | Dispatch events: |
<file java> | <file java> |