Programming Open Service Gateways with Java Embedded Server Technology (Paperback)
Kirk Chen, Li Gong
- 出版商: Addison Wesley
- 出版日期: 2001-08-30
- 定價: $1,575
- 售價: 8.0 折 $1,260
- 語言: 英文
- 頁數: 480
- 裝訂: Paperback
- ISBN: 0201711028
- ISBN-13: 9780201711028
-
相關分類:
嵌入式系統、Java 程式語言
立即出貨(限量)
買這商品的人也買了...
-
$1,068Software Engineering, 6/e
-
$350$298 -
$970Introduction to Algorithms, 2/e
-
$650$585 -
$720$569 -
$680$537 -
$1,548Core Servlets and JavaServer Pages, Vol. 1: Core Technologies, 2/e
-
$750$675 -
$560$504 -
$1,102Unix Network Programming, Vol. 1 : The Sockets Networking API, 3/e (IE-Paperback)
-
$490$382 -
$550$495 -
$690$538 -
$2,470$2,347 -
$2,900$2,755 -
$650$507 -
$399$339 -
$2,140$2,033 -
$550$495 -
$1,120$1,098 -
$880$581 -
$580$493 -
$580$458 -
$890$757 -
$720$569
相關主題
商品描述
Description
Features
Table Of Contents
Preface.Acknowledgments.
1. Introduction.
The Internet and the Networked Home.
The Service Gateway.
Challenges.
Java Embedded Server Technology.
The Open Services Gateway Initiative.
Operational Model.
The Service Gateway.
Challenges.
A Multitude of Competing Solutions.
A New Application Environment.
A New Application Environment.
Java Embedded Server Technology.
The Open Services Gateway Initiative.
Operational Model.
2. Getting Started.
Setting Up the Java Embedded Server Software.
The "Home, Sweet Home" Bundle.
Running the Bundle.
The "Home, Sweet Home" Bundle.
Create the Directory.
Define the Manifest.
Write an Activator.
Compile the Activator Class.
Pack Up.
Define the Manifest.
Write an Activator.
Compile the Activator Class.
Pack Up.
Running the Bundle.
Getting Help.
The Cache Directory.
The Bundle Base URL.
Brief Summary of the Major Commands.
The Cache Directory.
The Bundle Base URL.
Brief Summary of the Major Commands.
3. Architecture and Basic Concepts.
Motivation.
Architecture.
Service.
Bundle.
The Framework.
Cooperation among Bundles and Services.
Life within the Framework.
The Component-based Model.
Forget CLASSPATH.
Architecture.
Service.
Bundle.
A Bundle Is a Packaging Vehicle.
A Bundle Is a Functional Module.
The "Hooks" to the Framework.
A Bundle Is a Functional Module.
The "Hooks" to the Framework.
The Framework.
Cooperation among Bundles and Services.
Exporting and Importing Packages.
Registering and Obtaining Services.
Package versus Service Dependency.
Registering and Obtaining Services.
Package versus Service Dependency.
Life within the Framework.
Installing a Bundle.
Starting the Bundle.
Importing Packages and Getting Services.
Handling the Dynamic Service Dependency.
Updating a Bundle.
Stopping and Uninstalling a Bundle.
Starting the Bundle.
Importing Packages and Getting Services.
Handling the Dynamic Service Dependency.
Updating a Bundle.
Stopping and Uninstalling a Bundle.
The Component-based Model.
Forget CLASSPATH.
4. Developing Bundles.
Writing Service Bundles.
Same Service Interface, Different Implementations.
Retrieving Resources from within the Bundle.
Obtaining and Calling Registered Services.
Service Factory.
Relevant org.osgi.framework APIs.
Library Bundles.
Advanced Examples.
Writing Bundles That Contain Native Code.
Design the Service Interface.
Implement the Service.
Register the Service in the Activator.
Define the Manifest Headers.
Create the Bundle.
Implement the Service.
Register the Service in the Activator.
Define the Manifest Headers.
Create the Bundle.
Same Service Interface, Different Implementations.
Retrieving Resources from within the Bundle.
Obtaining and Calling Registered Services.
Interbundle Dependency and Class Loading Issues.
Service Use Count.
Compiling Client Bundles.
Service Use Count.
Compiling Client Bundles.
Service Factory.
Producing a Customized Service for Each Client Bundle.
Service Cache.
Customization for Getting and Releasing Service.
Service Cache.
Customization for Getting and Releasing Service.
Relevant org.osgi.framework APIs.
BundleContext Interface.
ServiceReference Interface.
ServiceRegistration Interface.
ServiceReference Interface.
ServiceRegistration Interface.
Library Bundles.
Advanced Examples.
A Mailer.
A Line Printer Daemon Print Service.
A Line Printer Daemon Print Service.
Writing Bundles That Contain Native Code.
Common Mistakes.
Activator.
Manifest.
Creating a JAR File.
Activator.
Manifest.
Creating a JAR File.
5. Cooperation among Service Bundles.
Event Handling.
Bundle State and Service Registration.
Synchronous and Asynchronous Events.
Dealing with Service Unregistration.
Cooperation with Asynchronous Events.
Bundle State and Service Registration.
Synchronous and Asynchronous Events.
Dealing with Service Unregistration.
Don't Start without the Service.
Discovering Stale Service.
Carrying On without the Service.
Picking an Alternative.
Cascading Service Registration.
Refusing Service.
Discovering Stale Service.
Carrying On without the Service.
Picking an Alternative.
Cascading Service Registration.
Refusing Service.
Cooperation with Asynchronous Events.
6. Design Patterns and Pitfalls.
Designing the Service.
Designing Library Bundles.
Delegation and Callback.
Leveraging the Service Registry.
Threading.
Managing Object Allocation.
Separating Service Interface and Implementation.
Challenges in Designing a Service Interface.
Approaching an Interface Design.
The Social Aspect.
Challenges in Designing a Service Interface.
Approaching an Interface Design.
The Social Aspect.
Designing Library Bundles.
Delegation and Callback.
Leveraging the Service Registry.
Threading.
Preventing Runaway Threads.
Writing a Multithread Server Bundle.
Using a Thread Pool.
Writing a Multithread Server Bundle.
Using a Thread Pool.
Managing Object Allocation.
Nullify References After Use.
Managing References among Bundles.
Managing References among Bundles.
7. Standard Services.
The Log Service.
The HTTP Service.
Using LogService to Write Logs.
Using LogReaderService to Get Logs.
Performing Persistent Logging.
Using LogReaderService to Get Logs.
Performing Persistent Logging.
The HTTP Service.
The Standard HttpService API.
Performing Basic Authentication.
The Extended HTTP Service.
Performing Basic Authentication.
The Extended HTTP Service.
8. Device Access.
Introduction.
Motivation.
Cast of Characters.
Writing DA Services.
Putting It Together.
The Software Stack in Device Access.
What Device Access Is Not.
What Device Access Is Not.
Motivation.
Cast of Characters.
Device Service.
Driver Services.
Driver Locator.
Device Manager.
Driver Services.
Driver Locator.
Device Manager.
Writing DA Services.
The Base Driver.
Device Detection.
Device Refinement.
The Reconfiguration Process.
Device Detection.
Device Refinement.
The Reconfiguration Process.
Putting It Together.
9. Permission-based Security and Administration.
Permission-based Security inside the Java 2 Platform.
OSGi Permissions.
Enabling Security.
Using Permissions in Your Service.
Administration.
Code Source.
Permission.
Policy.
Granting Permissions to Classes.
Security Manager.
Permission.
Policy.
Granting Permissions to Classes.
Security Manager.
OSGi Permissions.
AdminPermission.
ServicePermission.
PackagePermission.
Permission Required by the Framework APIs.
ServicePermission.
PackagePermission.
Permission Required by the Framework APIs.
Enabling Security.
Setting Up a Policy.
Running with Security Enabled.
Running with Security Enabled.
Using Permissions in Your Service.
Checking Permissions.
Performing Privileged Actions.
Creating Your Own Permission Types.
Performing Privileged Actions.
Creating Your Own Permission Types.
Administration.
Resolving Bundles Dynamically.
Relevant APIs.
Relevant APIs.
10. Future Directions.
Removing Phantom Bundles.
Dynamic Permissions.
Preferences.
User Administration.
Configuration Management.
What's Next.
Dynamic Permissions.
Preferences.
User Administration.
Configuration Management.
What's Next.
Appendix A. Code Examples.
Chapter 4--Developing Bundles.
Chapter 8--Device Access.
Chapter 9--Permission-based Security and Administration.
The LPD Print Service.
Chapter 8--Device Access.
Serial Service and Driver Locator.
Driver Service and Modem Service.
Web Interface to the Serial Ports.
Driver Service and Modem Service.
Web Interface to the Serial Ports.
Chapter 9--Permission-based Security and Administration.
Parameter Services.
Parameter Configuration Servlet.
Facilitator.
Parameter Configuration Servlet.
Facilitator.
Appenidix B. OSGi Service Gateway Specification.
org.osgi.framework.
AdminPermission.
Bundle.
BundleActivator.
BundleContext.
BundleEvent.
BundleException.
BundleListener.
Configurable.
FrameworkEvent.
FrameworkListener.
InvalidSyntaxException.
PackagePermission.
ServiceEvent.
ServiceFactory.
ServiceListener.
ServicePermission.
ServiceReference.
ServiceRegistration.
org.osgi.service.device.
Device.
Driver.
DriverLocator.
org.osgi.service.http.
HttpContext.
HttpService.
NamespaceException.
org.osgi.service.log.
LogEntry.
LogListener.
LogReaderService.
LogService.
AdminPermission.
Bundle.
BundleActivator.
BundleContext.
BundleEvent.
BundleException.
BundleListener.
Configurable.
FrameworkEvent.
FrameworkListener.
InvalidSyntaxException.
PackagePermission.
ServiceEvent.
ServiceFactory.
ServiceListener.
ServicePermission.
ServiceReference.
ServiceRegistration.
org.osgi.service.device.
Device.
Driver.
DriverLocator.
org.osgi.service.http.
HttpContext.
HttpService.
NamespaceException.
org.osgi.service.log.
LogEntry.
LogListener.
LogReaderService.
LogService.
Bibliography.
Index. 0201711028T08142001
商品描述(中文翻譯)
描述
適用課程
特點
目錄
前言
致謝
1. 簡介
2. 入門指南
3. 架構和基本概念
4. 開發 Bundle
5. 服務 Bundle 之間的合作
事件處理