Beyond the Basics Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
Beyond the Basics Table of Contents 1. Beyond the Basics . 1 1.1. Other Guides . 1 2. View Models . 2 2.1. Use Cases . 2 2.2. Programming Model . 5 2.3. JAXB-annotated DTOs . 7 3. Decoupling. 16 3.1. Database Schemas . 16 3.2. Mixins . 18 3.3. Contributions . 24 3.4. Vetoing Visibility . 25 3.5. Event Bus . 26 3.6. Pushing Changes . 26 4. i18n . 29 4.1. Implementation Approach. 29 4.2. TranslationService . 30 4.3. Imperative messages . 31 4.4. Wicket Viewer . 33 4.5. Integration Testing . 38 4.6. Escaped strings . 39 4.7. Configuration . 40 4.8. Supporting services . 41 5. Headless access . 43 5.1. AbstractIsisSessionTemplate . 43 5.2. BackgroundCommandExecution . 44 6. Other Techniques. 47 6.1. Mapping RDBMS Views. 47 6.2. Transactions and Errors . 47 6.3. Multi-tenancy . 48 6.4. Persisted Title . 48 6.5. Overriding Default Service Implns . 50 7. Customizing the Prog Model . 53 7.1. Custom validator . 53 7.2. Finetuning . 55 7.3. Layout Metadata Reader . 56 8. Deployment . 59 8.1. Command Line (WebServer) . 59 8.2. Deploying to Tomcat . 60 8.3. Externalized Configuration . 61 8.4. Docker . 65 8.5. Deploying to Google App Engine . 67 8.6. Neo4J . 68 8.7. JVM Flags . 69 9. web.xml . 71 9.1. Servlet Context Listeners . 73 9.2. Servlets . 75 9.3. Filters . 76 9.4. Configuration Files . 83 Chapter 1. Beyond the Basics This guide provides more advanced guidance on writing maintainable larger applications. Later chapters discuss how to deploy your app, and discuss other ways in which you can extend or adapt the framework itself to your particular needs. 1.1. Other Guides Apache Isis documentation is broken out into a number of user, reference and "supporting procedures" guides. The user guides available are: • Fundamentals • Wicket viewer • Restful Objects viewer • DataNucleus object store • Security • Testing • Beyond the Basics (this guide) The reference guides are: • Annotations • Domain Services • Configuration Properties • Classes, Methods.