Spring Recipes [electronic resource] : A Problem-Solution Approach /
Rubio, Daniel.author.
Long, Josh.author.
Mak, Gary.author.
Deinum, Marten.author.
Spring Recipes: A Problem-Solution Approach, Third Edition builds upon the best-selling success of the previous editions and focuses on the latest Spring Framework features for building enterprise Java applications. This book provides code recipes for the following, found in the latest Spring: Spring fundamentals: Spring IoC container, Spring AOP/ AspectJ, and more. Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, Spring Remoting, messaging, transactions, and working with big data and the cloud using Hadoop and MongoDB. Spring web: Spring MVC, other dynamic scripting, integration with the popular Grails Framework (and Groovy), REST/web services, and more This book guides you step-by-step through topics using complete and real-world code examples. When you start a new project, you can consider copying the code and configuration files from this book, and then modifying them for your needs. This can save you a great deal of work over creating a project from scratch!
Contents at a Glance; Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Spring Development Tools; 1-1. Build a Spring application with the Spring Tool Suite; Problem; Solution; How It Works; 1-2. Build a Spring applica tion with the Eclipse IDE; Problem; Solution; How It Works; 1-3. Build a Spring application with the IntelliJ IDE; Problem; Solution; How It Works; 1-4. Build a Spring application with the Maven command line interface; Problem; Solution; How It Works; 1-5. Build a Spring application with the Gradle command line interface
ProblemSolution; How It Works; 1.6 Build a Spring application with the Gradle Wrapper; Problem; Solution; How It Works; Summary; Chapter 2: Spring Core Tasks; 2-1. Manage and Configure POJOs with the Spring IoC Container; Problem; Solution; How It Works; Create the POJO Class; Create a XML Configuration for your POJO; Instantiate the Spring IoC Container; Get POJO Instances or Beans from the IoC Container; 2-2. Create POJOs by Invoking a Constructor; Problem; Solution; How It Works; Create the POJO Classes with Constructors; Create XML Configuration to Create POJOs via Constructor
Resolve Constructor Ambiguity2-3. Use POJO References, Auto-Wiring, and Imports to Interact with Other POJOs; Problem; Solution; How It Works; Create Multiple POJO Classes that Reference One Another; Specify POJO References for Setter Methods; Specify POJO References for Constructor Arguments; Declare Inner or Anonymous POJO References; Auto-Wire POJOs; Resolve Auto-Wire Ambiguity with the Primary Attribute; Resolve Auto-Wire Ambiguity with the ByName Attribute; Resolve POJO References from Multiple Locations; 2-4. Configure POJOs with Java Collection Attributes; Problem; Solution
How It WorksLists, Arrays, and Sets; Maps and Properties; Specify the Data Type for Collection Elements; Specify Concrete Classes for Collections; 2-5. Set a POJOs Scope; Problem; Solution; How It Works; 2-6. Use Data from External Resources (Text Files, XML Files, Properties Files, or Image Files); Problem; Solution; How It Works; Use Properties File data to Setup POJO Instantiation Values; Use Data from any External Resource File for use in a POJO; 2-7. Resolve I18N Text Messages for Different Locales in Properties Files; Problem; Solution; How It Works
2-8. Customize POJO Initialization and DestructionProblem; Solution; How It Works; Define Methods to Run Before POJO Initialization and Destruction; Define Lazy Initialization for POJOs; Define Initialization of POJOs Before Other POJOs; 2-9. Create Post Processors to Validate and Modify POJOs; Problem; Solution; How It Works; Create POJO to Process Every Bean Instance; Create POJO to Process Selected Bean Instances; 2-10. Create POJOs with a Factory (Static Method, Instance Method, Spring's FactoryBean); Problem; Solution; How It Works; Create POJOs by Invoking a Static Factory Method
Create POJOs by Invoking an Instance Factory Method
Includes index.
Spring Recipes: A Problem-Solution Approach, Third Edition builds upon the best-selling success of the previous editions and focuses on the latest Spring Framework features for building enterprise Java applications. This book provides code recipes for the following, found in the latest Spring: Spring fundamentals: Spring IoC container, Spring AOP/ AspectJ, and more. Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, Spring Remoting, messaging, transactions, and working with big data and the cloud using Hadoop and MongoDB. Spring web: Spring MVC, other dynamic scripting, integration with the popular Grails Framework (and Groovy), REST/web services, and more This book guides you step-by-step through topics using complete and real-world code examples. When you start a new project, you can consider copying the code and configuration files from this book, and then modifying them for your needs. This can save you a great deal of work over creating a project from scratch!
Java (Computer program language).
Software engineering.
Java.
Software Engineering/Programming and Operating Systems.