skip to content
Covid-19 virus
COVID-19 Resources

Reliable information about the coronavirus (COVID-19) is available from the World Health Organization (current situation, international travel). Numerous and frequently-updated resource results are available from this WorldCat.org search. OCLC’s WebJunction has pulled together information and resources to assist library staff as they consider how to handle coronavirus issues in their communities.

Image provided by: CDC/ Alissa Eckert, MS; Dan Higgins, MAM
Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice. Preview this item
ClosePreview this item
Checking...

Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.

Author: Nilang Patel; Krunal Patel
Publisher: Birmingham : Packt Publishing, 2018.
Edition/Format:   eBook : Document : EnglishView all editions and formats
Summary:
Dependency Injection (DI) is a design pattern that allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable, and maintainable. This book will be your one stop guide to write loosely coupled code using the latest features of Java 9 with frameworks such as Spring 5 and Google Guice.
Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

Find a copy online

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Genre/Form: Electronic books
Additional Physical Format: Print version:
Patel, Nilang.
Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.
Birmingham : Packt Publishing, ©2018
Material Type: Document, Internet resource
Document Type: Internet Resource, Computer File
All Authors / Contributors: Nilang Patel; Krunal Patel
ISBN: 9781788296472 1788296478
OCLC Number: 1034585120
Notes: Introduction to bean scopes in Spring.
Description: 1 online resource (240 pages)
Contents: Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Why Dependency Injection?; Design patterns; Dependency Inversion Principle; Inversion of Control; Implementing DIP through IoC; Inverting the interface; Inverting object creation ; Different ways to invert object creation; Inversion of object creation through the factory pattern; Inversion of object creation through service locator; Dependency injection; Dependency injection types; Constructor injection; Setter injection; Interface injection; IoC containers; Summary. Chapter 2: Dependency Injection in Java 9Java 9 introduction; Key features; Java Platform Module System; JShell (REPL) --
The Java Shell; JLink --
Module Linker; Multi-release JAR files; Stream API enhancements; Stack-walking API; Immutable collections with convenient factory methods; HTTP/2.0 support; Modular Framework in Java 9; What is modularity?; Java Platform Module System; The need for a Java modular system; Modular JDK ; What is a module?; Structure of a module; Module Descriptor (module-info.java); Module types; Dependency Injection using the Java 9 Modular Framework. Modules with Service LoaderService (API) module; Service provider (Implementation) module; Service client application; Writing modular code using a command-line interface; Defining dependency between modules; Compiling and running modules; Summary; Chapter 3: Dependency Injection with Spring; A brief introduction to Spring framework; Spring framework architecture; Core container layer; Data access/integration layer; Spring web layer; Spring test; Miscellaneous; Bean management in Spring container; Spring IoC container; Configuration; Containers in action; Dependency Injection (DI) in Spring. Constructor-based DISetter-based DI; Spring DI with the factory method; Static factory method ; Instance (non-static) factory method; Auto-wiring in Spring; Auto-wiring by name; Auto-wiring by type; Auto-wiring by constructor; Annotation-based DI; DI through XML configuration; Defining annotation; Activating annotation-based configuration; Defining a Java class as with annotation; Annotation with the factory method; DI with Java configuration; Summary; Chapter 4: Dependency Injection with Google Guice; A brief introduction to the Google Guice framework; Guice setup. Dependency injection and JSR-330Example of simple DI; Basic injection in Guice; Guice API and Phases; Start up phase; Module interface; The AbstractModule class; Binder; Injector; Guice; Provider; Runtime phase; Guice annotations; Inject; ProvidedBy; ImplementedBy; @Named; Binding in Guice; Linked bindings; Instance bindings; Untargeted bindings; Constructor bindings; Built-in bindings; Just-in-time Bindings; Binding annotations; Guice injection; Constructor Injection; Method injection; Field injection; Optional injection; Static injection; Summary; Chapter 5: Scopes.

Abstract:

Dependency Injection (DI) is a design pattern that allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable, and maintainable. This book will be your one  Read more...

Reviews

User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

Be the first.

Similar Items

Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


\n\n

Primary Entity<\/h3>\n
<http:\/\/www.worldcat.org\/oclc\/1034585120<\/a>> # Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:CreativeWork<\/a>, schema:MediaObject<\/a>, schema:Book<\/a> ;\u00A0\u00A0\u00A0\nlibrary:oclcnum<\/a> \"1034585120<\/span>\" ;\u00A0\u00A0\u00A0\nlibrary:placeOfPublication<\/a> <http:\/\/id.loc.gov\/vocabulary\/countries\/enk<\/a>> ;\u00A0\u00A0\u00A0\nlibrary:placeOfPublication<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Place\/birmingham<\/a>> ; # Birmingham<\/span>\n\u00A0\u00A0\u00A0\nrdfs:comment<\/a> \"Warning: This malformed URI has been treated as a string - \'https:\/\/img1.od-cdn.com\/ImageType-100\/6135-1\/{2900B45A-472A-460E-A140-E54F3E1B04FE}Img100.jpg\'<\/span>\" ;\u00A0\u00A0\u00A0\nschema:about<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Topic\/application_software_development<\/a>> ; # Application software--Development<\/span>\n\u00A0\u00A0\u00A0\nschema:about<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Topic\/java<\/a>> ; # Java<\/span>\n\u00A0\u00A0\u00A0\nschema:about<\/a> <http:\/\/dewey.info\/class\/005.133\/e23\/<\/a>> ;\u00A0\u00A0\u00A0\nschema:bookFormat<\/a> schema:EBook<\/a> ;\u00A0\u00A0\u00A0\nschema:contributor<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Person\/patel_krunal<\/a>> ; # Krunal Patel<\/span>\n\u00A0\u00A0\u00A0\nschema:creator<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Person\/patel_nilang<\/a>> ; # Nilang Patel<\/span>\n\u00A0\u00A0\u00A0\nschema:datePublished<\/a> \"2018<\/span>\" ;\u00A0\u00A0\u00A0\nschema:description<\/a> \"Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Why Dependency Injection?; Design patterns; Dependency Inversion Principle; Inversion of Control; Implementing DIP through IoC; Inverting the interface; Inverting object creation ; Different ways to invert object creation; Inversion of object creation through the factory pattern; Inversion of object creation through service locator; Dependency injection; Dependency injection types; Constructor injection; Setter injection; Interface injection; IoC containers; Summary.<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\nschema:description<\/a> \"Dependency Injection (DI) is a design pattern that allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable, and maintainable. This book will be your one stop guide to write loosely coupled code using the latest features of Java 9 with frameworks such as Spring 5 and Google Guice.<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\nschema:exampleOfWork<\/a> <http:\/\/worldcat.org\/entity\/work\/id\/4667609449<\/a>> ;\u00A0\u00A0\u00A0\nschema:genre<\/a> \"Electronic books<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\nschema:inLanguage<\/a> \"en<\/span>\" ;\u00A0\u00A0\u00A0\nschema:isSimilarTo<\/a> <http:\/\/worldcat.org\/entity\/work\/data\/4667609449#CreativeWork\/java_9_dependency_injection_write_loosely_coupled_code_with_spring_5_and_guice<\/a>> ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\nschema:productID<\/a> \"1034585120<\/span>\" ;\u00A0\u00A0\u00A0\nschema:publication<\/a> <http:\/\/www.worldcat.org\/title\/-\/oclc\/1034585120#PublicationEvent\/birmingham_packt_publishing_2018<\/a>> ;\u00A0\u00A0\u00A0\nschema:publisher<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Agent\/packt_publishing<\/a>> ; # Packt Publishing<\/span>\n\u00A0\u00A0\u00A0\nschema:url<\/a> <https:\/\/nls.ldls.org.uk\/welcome.html?ark:\/81055\/vdc_100058419194.0x000001<\/a>> ;\u00A0\u00A0\u00A0\nschema:url<\/a> <https:\/\/www.overdrive.com\/search?q=2900B45A-472A-460E-A140-E54F3E1B04FE<\/a>> ;\u00A0\u00A0\u00A0\nschema:url<\/a> <https:\/\/samples.overdrive.com\/?crid=2900b45a-472a-460e-a140-e54f3e1b04fe&.epub-sample.overdrive.com<\/a>> ;\u00A0\u00A0\u00A0\nschema:url<\/a> <https:\/\/public.ebookcentral.proquest.com\/choice\/publicfullrecord.aspx?p=5371685<\/a>> ;\u00A0\u00A0\u00A0\nschema:url<\/a> \"https:\/\/img1.od-cdn.com\/ImageType-100\/6135-1\/{2900B45A-472A-460E-A140-E54F3E1B04FE}Img100.jpg<\/span>\" ;\u00A0\u00A0\u00A0\nschema:url<\/a> <http:\/\/www.vlebooks.com\/vleweb\/product\/openreader?id=none&isbn=9781788296472<\/a>> ;\u00A0\u00A0\u00A0\nschema:workExample<\/a> <http:\/\/worldcat.org\/isbn\/9781788296472<\/a>> ;\u00A0\u00A0\u00A0\numbel:isLike<\/a> <http:\/\/bnb.data.bl.uk\/id\/resource\/GBB882184<\/a>> ;\u00A0\u00A0\u00A0\nwdrs:describedby<\/a> <http:\/\/www.worldcat.org\/title\/-\/oclc\/1034585120<\/a>> ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n\n

Related Entities<\/h3>\n
<http:\/\/dewey.info\/class\/005.133\/e23\/<\/a>>\u00A0\u00A0\u00A0\u00A0a \nschema:Intangible<\/a> ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Agent\/packt_publishing<\/a>> # Packt Publishing<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nbgn:Agent<\/a> ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Packt Publishing<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Person\/patel_krunal<\/a>> # Krunal Patel<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:Person<\/a> ;\u00A0\u00A0\u00A0\nschema:familyName<\/a> \"Patel<\/span>\" ;\u00A0\u00A0\u00A0\nschema:givenName<\/a> \"Krunal<\/span>\" ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Krunal Patel<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Person\/patel_nilang<\/a>> # Nilang Patel<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:Person<\/a> ;\u00A0\u00A0\u00A0\nschema:familyName<\/a> \"Patel<\/span>\" ;\u00A0\u00A0\u00A0\nschema:givenName<\/a> \"Nilang<\/span>\" ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Nilang Patel<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Place\/birmingham<\/a>> # Birmingham<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:Place<\/a> ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Birmingham<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Topic\/application_software_development<\/a>> # Application software--Development<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:Intangible<\/a> ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Application software--Development<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Topic\/java<\/a>> # Java<\/span>\n\u00A0\u00A0\u00A0\u00A0a \nschema:Intangible<\/a> ;\u00A0\u00A0\u00A0\nschema:name<\/a> \"Java<\/span>\"@en<\/a> ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/id.loc.gov\/vocabulary\/countries\/enk<\/a>>\u00A0\u00A0\u00A0\u00A0a \nschema:Place<\/a> ;\u00A0\u00A0\u00A0\ndcterms:identifier<\/a> \"enk<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/worldcat.org\/entity\/work\/data\/4667609449#CreativeWork\/java_9_dependency_injection_write_loosely_coupled_code_with_spring_5_and_guice<\/a>>\u00A0\u00A0\u00A0\u00A0a \nschema:CreativeWork<\/a> ;\u00A0\u00A0\u00A0\nrdfs:label<\/a> \"Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.<\/span>\" ;\u00A0\u00A0\u00A0\nschema:description<\/a> \"Print version:<\/span>\" ;\u00A0\u00A0\u00A0\nschema:isSimilarTo<\/a> <http:\/\/www.worldcat.org\/oclc\/1034585120<\/a>> ; # Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.<\/span>\n\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/worldcat.org\/isbn\/9781788296472<\/a>>\u00A0\u00A0\u00A0\u00A0a \nschema:ProductModel<\/a> ;\u00A0\u00A0\u00A0\nschema:isbn<\/a> \"1788296478<\/span>\" ;\u00A0\u00A0\u00A0\nschema:isbn<\/a> \"9781788296472<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/www.worldcat.org\/title\/-\/oclc\/1034585120<\/a>>\u00A0\u00A0\u00A0\u00A0a \ngenont:InformationResource<\/a>, genont:ContentTypeGenericResource<\/a> ;\u00A0\u00A0\u00A0\nschema:about<\/a> <http:\/\/www.worldcat.org\/oclc\/1034585120<\/a>> ; # Java 9 Dependency Injection : Write loosely coupled code with Spring 5 and Guice.<\/span>\n\u00A0\u00A0\u00A0\nschema:dateModified<\/a> \"2020-05-07<\/span>\" ;\u00A0\u00A0\u00A0\nvoid:inDataset<\/a> <http:\/\/purl.oclc.org\/dataset\/WorldCat<\/a>> ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n
<http:\/\/www.worldcat.org\/title\/-\/oclc\/1034585120#PublicationEvent\/birmingham_packt_publishing_2018<\/a>>\u00A0\u00A0\u00A0\u00A0a \nschema:PublicationEvent<\/a> ;\u00A0\u00A0\u00A0\nschema:location<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Place\/birmingham<\/a>> ; # Birmingham<\/span>\n\u00A0\u00A0\u00A0\nschema:organizer<\/a> <http:\/\/experiment.worldcat.org\/entity\/work\/data\/4667609449#Agent\/packt_publishing<\/a>> ; # Packt Publishing<\/span>\n\u00A0\u00A0\u00A0\nschema:startDate<\/a> \"2018<\/span>\" ;\u00A0\u00A0\u00A0\u00A0.\n\n\n<\/div>\n\n

Content-negotiable representations<\/p>\n