معرفی کتاب «Modular Java: Creating Flexible Applications with OSGi and Spring (Pragmatic Programmers)» نوشتهٔ Walls, Craig, Walls, Craig، منتشرشده توسط نشر The Pragmatic Bookshelf در سال 2009. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Modular Java: Creating Flexible Applications with OSGi and Spring (Pragmatic Programmers)» در دستهٔ بدون دستهبندی قرار دارد.
Книга Modular Java: Creating Flexible Applications with OSGi and Spring Modular Java: Creating Flexible Applications with OSGi and Spring Книги Java Автор: Craig Walls Год издания: 2009 Формат: pdf Издат.:Craig Walls Страниц: 246 Размер: 2,56 ISBN: 978-1934356-40-1 Язык: Английский0 (голосов: 0) Оценка:The secret weapon for attacking complexity in any project is to break it down into smaller, cohesive, and more easily digestible pieces. With Modular Java, you can easily develop applications that are more flexible, testable, maintainable, and comprehensible.Modular Java is a pragmatic guide to developing modular applications using OSGi, the framework for dynamic modularity in Java, and Spring Dynamic Modules, an OSGi extension to the Spring Framework. You'll start with the basics but quickly ramp up, creating loosely-coupled modules that publish and consume services, and you'll see how to compose them into larger applications. Along the way, you'll apply what you learn as you build a complete web application that is made up of several OSGi modules, using Spring-DM to wire those modules together.Modular Java is filled with tips and tricks that will make you a more proficient OSGi and Spring-DM developer. Equipped with the know-how gained from this book, you'll be able to develop applications that are more robust and agile. Contents 7 Introduction 10 A New Set of Wheels 11 Modularity 11 Introducing OSGi 15 Road Map 19 Who Is This Book For? 21 Acknowledgments 21 OSGi Fundamentals 23 Getting Started 24 Getting to Know the OSGi Container 24 Hello, OSGi 30 A Hello World Service Bundle 36 Dude, Where's My JAR? 45 Searching for JAR Files 45 Designing the Application Components 46 Bundling the Application Components for OSGi 48 Setting Up the Project 50 Working with Bundles 59 Creating the Domain Bundle 59 Contending with Nonbundle Dependencies 69 Following the Bundle Life Cycle 78 OSGi Services 80 Creating an OSGi Service 80 Testing the Service 91 Consuming OSGi Services 100 Spring Dynamic Modules and Web Bundles 109 Spring and OSGi 110 Introducing Spring-DM 111 Declaring Services 115 Injecting Services into Consumers 122 Creating Web Bundles 129 Assembling a Web Server 129 The Spring-DM Web Extender 137 Developing a Web Bundle 142 Deploying the Web Bundle 150 Extending Bundles 159 Introducing Fragments 159 Creating a UI Fragment 161 Trying It 167 Finishing Touches 171 OSGi in Production 172 Distributing the Application 172 Adding an Administration Console 181 Configuring the Application 186 Installing Pax ConfMan 187 Configuring the Web Console 188 Adjusting Logging 190 Configuring Application Details 191 Configuring the Web Server 197 Manifest Headers 202 OSGi R4 Headers 202 Spring-DM Configuration 204 Spring-DM Core Configuration Elements 204 Spring-DM Compendium Configuration Elements 212 The OSGi Blueprint Service 216 Comparing the Blueprint Service with Spring-DM 216 OSGi Blueprint Services (RFC-124) Elements 217 OSGi Blueprint Services (RFC-124) Compendium Elements 226 Resources 231 Bibliography 233 Index 234 Symbols 234 A 234 B 234 C 235 D 235 E 235 F 236 G 236 H 236 I 236 J 236 K 237 L 237 M 237 N 237 O 237 P 237 R 238 S 238 T 239 U 239 V 239 W 239
Attack complexity in your Java applications using Modular Java. This pragmatic guide introduces you to OSGi and Spring Dynamic Modules, two of the most compelling frameworks for Java modularization. Driven by real-world examples, this book will equip you with the know-how you need to develop Java applications that are composed of smaller, loosely coupled, highly cohesive modules.
The secret weapon for attacking complexity in any project is to break it down into smaller, cohesive, and more easily digestible pieces. With Modular Java, you can easily develop applications that are more flexible, testable, maintainable, and comprehensible.
Modular Java is a pragmatic guide to developing modular applications using OSGi, the framework for dynamic modularity in Java, and Spring Dynamic Modules, an OSGi extension to the Spring Framework. You'll start with the basics but quickly ramp up, creating loosely coupled modules that publish and consume services, and you'll see how to compose them into larger applications. Along the way, you'll apply what you learn as you build a complete web application that is made up of several OSGi modules, using Spring-DM to wire those modules together.
Modular Java is filled with tips and tricks that will make you a more proficient OSGi and Spring-DM developer. Equipped with the know-how gained from this book, you'll be able to develop applications that are more robust and agile.
The secret weapon for attacking complexity in any project is to break it down into smaller, cohesive, and more easily digestible pieces. This guide deals with developing modular applications using OSGi, the framework for dynamic modularity in Java, and Spring Dynamic Modules, an OSGi extension to the Spring Framework.