Java EE 7 developer handbook : develop professional applications in Java EE 7 with this essential reference guide /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2013.
|
Colección: | Professional expertise distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgment; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Java EE 7 HTML5 Productivity; Java EE 7; Enhanced HTML5 support; Java EE 7 architecture; Standard platform components and API; New productivity themes; Refinements; Java EE Platform; Java EE Profiles; Web Profile; Enterprise Profile; A working example; Entities; Business logic; The service endpoints; A WebSocket endpoint; A RESTful endpoint; The Entity Control Boundary pattern; Summary; Chapter 2: Context and Dependency Injection.
- Software engineering definitionsThe Context and Dependency Injection service; Beans and bean types; Basic injection; Field injection; Setter injection; Constructor injection; Qualifiers; Built-in qualifiers; The CDI classpath scanning; Factory production; Generating new instances every time; The Bean names and the presentation views; The bean scopes; CDI initialization and destruction; The @PostConstruct annotation; The @PreDestroy annotation; Programmatic Lookup of the CDI Beans; Configuring a CDI application; Standalone CDI application; Building the standalone project with Gradle.
- Using the DeltaSpike CDI container testsInjecting arbitrary objects using Producers; Advanced CDI; The lifecycle component example; Alternatives; Arquillian test framework; A new kind of Java EE testing framework; Setup of Arquillian; The disposable methods; CDI and crosscutting concerns; Interceptors; Decorators; Observers and events; Stereotypes; Summary; Chapter 3: Enterprise Java Beans; EJB protocols; Criticism of EJB; Simplification of EJB; Features of EJB components; Session beans; Stateless session beans; Concurrency and stateless session EJB; Stateful session beans.
- Singleton session beansThe lifecycle of session EJBs; Lifecycle of stateless EJBs; Lifecycle of stateful session beans; Lifecycle of singleton session beans; Business interfaces; Local access; Remote access; Access summary; No interface views; EJB references; Asynchronous invocations; The relationship between EJB and CDI containers; Lightweight scope of EJB; Summary; Chapter 4: Essential Java Persistence API 3.2; Entities; Entity bean definition; An entity bean example; A Plain Old Java Object; A simple entity bean; Expanded entity bean definition; Annotating entity beans.
- Annotating entities with the instance variablesAnnotating entities with property accessors; Comparing annotating styles; Running a simple entity bean test; The Gradle build file for the entity bean test; A stateful session bean; An entity bean integration test; A persistence context XML configuration; Arquillian configuration for the embedded GlassFish server; Running the integration test; The lifecycle of entity bean; The new entity state; The managed entity state; The detached entity state; The removed entity state; EntityManager; Persistence context; The EntityManager methods.