ebook img

Aspectj in Action: Enterprise AOP with Spring Applications PDF

567 Pages·2009·9.85 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Aspectj in Action: Enterprise AOP with Spring Applications

www.dbebooks.com - Free Books & magazines Enterprise AOP with Spring Applications A IN CTION Ramnivas Laddad FOREWORD BY ROD JOHNSON M A N N I N G Praise for the First Edition There are already several books about AspectJ—one of its major advantages.... My favorite is AspectJ in Action. —Rod Johnson, Creator of the Spring Framework in J2EE Development without EJB One of the clearest expositions of AOP and its benefits that I have seen.... It is obvious that a lot of care and attention has gone into the preparation of the material. —Adrian Colyer, AspectJ Project Lead, in The Computer Journal I would highly recommend AspectJ in Action to anyone who is interested in AOP.... I liked the practical angle, and you could tell that Ramnivas has really used AOP/ AspectJ on his projects. —Dion Almaer at TheServerSide.com …real solutions to tough problems. —Chris Bartling, Identix, Inc. Laddad brings to the professional community a valuable book, to support AOP tutoring and adoption...a well-constructed, well-balanced book that delivers what it promises. —Computing Reviews at www.reviews.com I started reading at 11 PM and couldn’t stop…. It’s a must-read for anyone interested in the future of programming. —Arno Schmidmeier, AspectSoft This book is to aspect-oriented programming what the Gang of Four book is to design patterns. —Computing Reviews at www.reviews.com ...a wonderful job of introducing the new AOP trend...no other book succeeded to present the challenges of AOP so well. —JavaRanch.com Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> More Praise for the First Edition The author succeeds brilliantly in gradually building your understanding of AOP, then AspectJ’s own semantics, and then the coding possibilities these offer…. The writing is clear and accessible, the content expertly graduated. —a reader at Amazon.co.uk ...one of the few technical books that has blown my hair back.… [I] walked away feeling as though I had actually grown as a developer. —Alex Winston at AlexWinston.com By far the best programming-related book I have read in a long time. —a reader at Amazon.co.uk ...a very clear and complete treatment of aspects. Like the other books in the “In Action” series from Manning, it is filled with very good diagrams.... This book will definitely help. —on The Daily Channel ...I would recommend going with AspectJ in Action...you will get the most bang for your buck from Ramnivas’s work.... The subject-oriented approach in this book lends itself well to future reuse. —on jroller.com ...exactly what I needed...fantastic use of diagrams, figures, and annotated code. They solidly add to understanding the content.... I found the book to really be excellent from all viewpoints for getting into the subject matter from many angles and diving down very deep into it. —Max Spille at TheServerSide.com This book provides a very good resource both for people starting to learn AOP and AspectJ and for experienced AOP programmers who wish to deepen their knowledge in this new area. —Valentin Crettaz, JavaRanch The only resource that presents AOP concepts and real-world examples in an approachable, readable way. —Jean Baltus, Metafron-Infosys Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> AspectJ in Action Second Edition ENTERPRISE AOP WITH SPRING APPLICATIONS RAMNIVAS LADDAD MANNING Greenwich (74° w. long.) Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. Sound View Court 3B fax: (609) 877-8256 Greenwich, CT 06830 email: [email protected] ©2010 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed without the use of elemental chlorine. Development Editor: Cynthia Kane Manning Publications Co. Copyeditor: Tiffany Taylor Sound View Court 3B Typesetter: Gordan Salinovic Greenwich, CT 06830 Cover designer: Marija Tudor ISBN 978-1-933988-05-4 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 14 13 12 11 10 09 Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> To Ashish In our hearts you will always remain Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> brief contents PART 1 UNDERSTANDING AOP AND ASPECTJ.............................1 1 ■ Discovering AOP 3 2 ■ Introducing AspectJ 27 3 ■ Understanding the join point model 51 4 ■ Modifying behavior with dynamic crosscutting 87 5 ■ Modifying structure with static crosscutting 116 6 ■ Aspects: putting it all together 136 7 ■ Diving into the @AspectJ syntax 168 8 ■ AspectJ weaving models 199 9 ■ Integration with Spring 217 PART 2 APPLICATIONS OF ASPECTJ WITH SPRING...................249 10 ■ Monitoring techniques 251 11 ■ Policy enforcement: keeping your design intact 288 12 ■ Learning design patterns 319 13 ■ Implementing concurrency control 344 14 ■ Managing transactions 373 vii Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> viii BRIEF CONTENTS 15 ■ Securing applications 404 16 ■ Improving domain logic 431 17 ■ Taking the next step 459 appendix A ■ Setting up the example 469 appendix B ■ Using Ant with AspectJ 486 appendix C ■ Using Maven with AspectJ 491 brief contents Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]> contents foreword xix preface xxiii preface to the first edition xxv acknowledgments xxvii about this book xxix about the title xxxiv about the cover illustration xxxv a real-world perspective of AOP xxxvii PART 1 UNDERSTANDING AOP AND ASPECTJ .................1 1 Discovering AOP 3 1.1 Life without AOP 4 Code tangling 5 ■ Code scattering 7 1.2 Modularizing with AOP 7 1.3 Anatomy of an AOP language 9 The AOP language specification 9 ■ The AOP language implementation 10 1.4 Fundamental concepts in AOP 11 contents ix Download at WoWeBook.Com Licensed to Mylene Corbett <[email protected]>

Description:
To allow the creation of truly modular software, OOP has evolved into aspect-oriented programming. AspectJ is a mature AOP implementation for Java, now integrated with Spring. AspectJ in Action, Second Edition is a fully updated, major revision of Ramnivas Laddad's best-selling first edition. It's a
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.