This document summarizes a presentation on Jakarta REST. The presentation covered: 1) What is Jakarta REST and its history, 2) How to initialize a Jakarta REST application and define paths, 3) Dependency injection using annotations like @Context and @Inject, and 4) How Jakarta REST handles HTTP requests and responses through its processing pipeline. The presenter provided references and code samples on GitHub to further illustrate key points.
The document summarizes the development of a small product by a team to search social networks and report results. It describes their motivation to create new software products after maintaining various systems. They developed a minimum viable product in JavaFX that searched Twitter and reported results. Over time they expanded it to add real-time search capabilities and considered new sales approaches. However, the company then required following an older standard, which went against the team's agile approach, leading to the end of the project.
This document summarizes a 40 minute presentation on introducing Jakarta EE APIs. It discusses where the main method is located in Jakarta EE applications, an overview of Jakarta REST, Jakarta CDI, and MicroProfile Config. It provides examples of how to send HTTP requests using Jakarta REST and how to integrate Jakarta REST with Jakarta CDI. The presentation aims to explain the basic concepts and usages of these key Jakarta EE technologies.
The document provides an overview of the Payara Services Admin Console. It describes key concepts including domains, instances, applications, resources, monitoring, and configuration. Domains contain runtime environments made up of configurations for instances, applications, and resources. The admin console allows users to configure domains and instances, deploy applications and resources, monitor servers and their components, and ensure server stability through configuration.
How to adapt MicroProfile API for Generic Web ApplicationsKenji HASUNUMA
This document discusses how to use MicroProfile APIs for generic web applications. It describes the MicroProfile Config API, which allows dividing configurations from code so applications can run in different environments. It also covers the MicroProfile Rest Client API, which provides a type-safe interface for calling REST endpoints that integrates with CDI and the Config API. The speaker gives examples of injecting configuration properties and making requests using the Rest Client.
This document discusses MicroProfile Metrics, which provides a REST API for exposing system and application metrics. Key features include a REST endpoint for accessing metrics organized by registry, with formats including Prometheus text and JSON. Metrics are denoted using annotations and updated via registry methods, then exposed via the REST API. Examples demonstrate annotating a counter metric and incrementing it to track HTTP requests.
This document provides an introduction to the Java Connector Architecture (JCA) and Message-Driven Beans (MDBs). It explains that JCA enables integration between systems and is the base for Java EE servers. It also outlines how MDBs are used to listen for inbound messages from JCA resource adapters. Programming with JCA often involves using provided resource adapters to manage connections and transactions. Messaging is commonly used for integration through JCA and MDBs provide asynchronous message handling capabilities.
The document discusses a common myth about if-then-else statements in Java. It explains that in an if-then-else statement with nested if conditions, if the outer if condition evaluates to false, neither the inner if statement nor the else block will execute due to short-circuit evaluation. This can surprise developers who are not aware of how if-then-else statements are defined in the Java Language Specification. The document provides code examples and references the JLS to clarify the actual behavior.
This document provides an introduction to the Java Date and Time API. It defines key concepts like seconds, time zones, ISO 8601 date/time formats, and classes for representing dates, times, offsets and durations. It explains how to create temporal objects from fields or strings, modify and convert between objects, and format/parse dates and times. Advanced topics covered include clocks, zones, chronologies, and customizing date/time handling.
This document is a beginner's guide to Java Collections Framework. It introduces common data structures like lists, sets, queues and maps. It explains basic concepts like algorithms, collection types and implementations. It also covers operations on collections like iteration, sorting and filtering. The guide demonstrates how to select the appropriate data structure and implementation based on requirements. It provides examples of using collections and streams to perform bulk operations on data.
This document provides an introduction to Java's Date and Time API. It discusses key classes like LocalDate, LocalDateTime, and ZonedDateTime that represent dates, times, and timestamps. It also covers formatting and parsing dates and times using DateTimeFormatter, and manipulating dates and times using factory and conversion methods. The document concludes that the API provides a powerful way to perform date and time calculations while modeling the ISO 8601 standard.
This document introduces JavaFX dialogs, including alert dialogs that return button types, text input dialogs that return input text, and choice dialogs that return selected items. It discusses creating and configuring dialogs, setting properties, showing dialogs modally or non-modally, and handling results. Tips are provided on resizing dialogs and creating simple dialog-based applications. In conclusion, dialogs represent modal windows in JavaFX and are shown using the showAndWait() method after configuration.
1. The document discusses the new Date and Time API (JSR 310) for Java, which is based on the ISO 8601 standard.
2. It provides details on date, time, duration, and period representations, conversions between different date/time objects, and examples of using the API.
3. The API includes classes like LocalDate, LocalDateTime, OffsetDateTime, ZonedDateTime, Instant, Duration, and Period to represent dates, times, durations, and periods.
This document summarizes a presentation on Jakarta REST. The presentation covered: 1) What is Jakarta REST and its history, 2) How to initialize a Jakarta REST application and define paths, 3) Dependency injection using annotations like @Context and @Inject, and 4) How Jakarta REST handles HTTP requests and responses through its processing pipeline. The presenter provided references and code samples on GitHub to further illustrate key points.
The document summarizes the development of a small product by a team to search social networks and report results. It describes their motivation to create new software products after maintaining various systems. They developed a minimum viable product in JavaFX that searched Twitter and reported results. Over time they expanded it to add real-time search capabilities and considered new sales approaches. However, the company then required following an older standard, which went against the team's agile approach, leading to the end of the project.
This document summarizes a 40 minute presentation on introducing Jakarta EE APIs. It discusses where the main method is located in Jakarta EE applications, an overview of Jakarta REST, Jakarta CDI, and MicroProfile Config. It provides examples of how to send HTTP requests using Jakarta REST and how to integrate Jakarta REST with Jakarta CDI. The presentation aims to explain the basic concepts and usages of these key Jakarta EE technologies.
The document provides an overview of the Payara Services Admin Console. It describes key concepts including domains, instances, applications, resources, monitoring, and configuration. Domains contain runtime environments made up of configurations for instances, applications, and resources. The admin console allows users to configure domains and instances, deploy applications and resources, monitor servers and their components, and ensure server stability through configuration.
How to adapt MicroProfile API for Generic Web ApplicationsKenji HASUNUMA
This document discusses how to use MicroProfile APIs for generic web applications. It describes the MicroProfile Config API, which allows dividing configurations from code so applications can run in different environments. It also covers the MicroProfile Rest Client API, which provides a type-safe interface for calling REST endpoints that integrates with CDI and the Config API. The speaker gives examples of injecting configuration properties and making requests using the Rest Client.
This document discusses MicroProfile Metrics, which provides a REST API for exposing system and application metrics. Key features include a REST endpoint for accessing metrics organized by registry, with formats including Prometheus text and JSON. Metrics are denoted using annotations and updated via registry methods, then exposed via the REST API. Examples demonstrate annotating a counter metric and incrementing it to track HTTP requests.
This document provides an introduction to the Java Connector Architecture (JCA) and Message-Driven Beans (MDBs). It explains that JCA enables integration between systems and is the base for Java EE servers. It also outlines how MDBs are used to listen for inbound messages from JCA resource adapters. Programming with JCA often involves using provided resource adapters to manage connections and transactions. Messaging is commonly used for integration through JCA and MDBs provide asynchronous message handling capabilities.
The document discusses a common myth about if-then-else statements in Java. It explains that in an if-then-else statement with nested if conditions, if the outer if condition evaluates to false, neither the inner if statement nor the else block will execute due to short-circuit evaluation. This can surprise developers who are not aware of how if-then-else statements are defined in the Java Language Specification. The document provides code examples and references the JLS to clarify the actual behavior.
This document provides an introduction to the Java Date and Time API. It defines key concepts like seconds, time zones, ISO 8601 date/time formats, and classes for representing dates, times, offsets and durations. It explains how to create temporal objects from fields or strings, modify and convert between objects, and format/parse dates and times. Advanced topics covered include clocks, zones, chronologies, and customizing date/time handling.
This document is a beginner's guide to Java Collections Framework. It introduces common data structures like lists, sets, queues and maps. It explains basic concepts like algorithms, collection types and implementations. It also covers operations on collections like iteration, sorting and filtering. The guide demonstrates how to select the appropriate data structure and implementation based on requirements. It provides examples of using collections and streams to perform bulk operations on data.
This document provides an introduction to Java's Date and Time API. It discusses key classes like LocalDate, LocalDateTime, and ZonedDateTime that represent dates, times, and timestamps. It also covers formatting and parsing dates and times using DateTimeFormatter, and manipulating dates and times using factory and conversion methods. The document concludes that the API provides a powerful way to perform date and time calculations while modeling the ISO 8601 standard.
This document introduces JavaFX dialogs, including alert dialogs that return button types, text input dialogs that return input text, and choice dialogs that return selected items. It discusses creating and configuring dialogs, setting properties, showing dialogs modally or non-modally, and handling results. Tips are provided on resizing dialogs and creating simple dialog-based applications. In conclusion, dialogs represent modal windows in JavaFX and are shown using the showAndWait() method after configuration.
1. The document discusses the new Date and Time API (JSR 310) for Java, which is based on the ISO 8601 standard.
2. It provides details on date, time, duration, and period representations, conversions between different date/time objects, and examples of using the API.
3. The API includes classes like LocalDate, LocalDateTime, OffsetDateTime, ZonedDateTime, Instant, Duration, and Period to represent dates, times, durations, and periods.
3. オブジェクトと依存性について
• “A は B に依存している”
→ A と B は密結合である
• a が b を直接生成できないケー
スがある
• a と b の生存期間が異なる
例: a はHTTPリクエスト毎に生成
されるが、b は複数のリクエスト
にまたがって生存する
• b がネットワーク上のオブジェク
トである(分散コンポーネント)
• 解決案
→ A と B を疎結合にする
4. 疎結合の実現方法①:JNDIルックアップ
1. A は B を知らない
→ b にアクセスできない
2. A は JNDI から B を取得する
→ b へのアクセス手段 b’ を
得られる
3. B として b’ を呼び出す
→ 間接的に b を呼び出す
• 事前に B を JNDI へ登録してお
く必要がある
• A は JNDI から B を明示的に取
得する必要がある
5. 疎結合の実現方法②:Dependency Injection (DI)
1. m は A に B を設定する
→ A は m から B へのアクセ
ス手段 b’ を得ている
2. B として b’ を呼び出す
→間接的に b を呼び出す
• m は A に対して
B への依存性 (Dependency) を
注入 (Inject) している
• b’ の取得方法がJNDIルック
アップと逆になっている
→制御の反転 (Inverse of
Control)