没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
MEAP Edition
Manning Early Access Program
Enterprise OSGi in Action version 7
Copyright 2012 Manning Publications
For more information on this and other Manning titles go to
www.manning.com
©Manning Publications Co. Please post comments or corrections to the Author Online forum:
http://www.manning-sandbox.com/forum.jspa?forumID=762
Licensed to lz <lzfying@gmail.com>
Table of Contents
Part 1: Programming beyond hello world
1 OSGi and the enterprise—why now?
2 Hello World Wide Web
3 Persistence pays off
4 Packaging your Enterprise OSGi applications
Part 2: Building better Enterprise OSGi applications
5 Best practices for writing enterprise applications
6 Building dynamic applications with OSGi services
7 Provisioning and resolution
8 Tools for building and testing
9 IDE development tools
Part 3: Integrating Enterprise OSGi with everything else
10 Hooking up remote systems with distributed OSGi
11 Migration and integration
12 Coping with the non-OSGi world
13 Choosing a stack
Appendixes
A OSGi basics
B The OSGi ecosystem
©Manning Publications Co. Please post comments or corrections to the Author Online forum:
http://www.manning-sandbox.com/forum.jspa?forumID=762
Licensed to lz <lzfying@gmail.com>
1
Having just opened this book, we're sure that many of you are wondering what
Enterprise OSGi is. Enterprise OSGi covers a number of topics, all of which are
commonly used in Enterprise programming. That probably isn't the most helpful of
descriptions, so for those of you who have used Java Enterprise Edition before
Enterprise OSGi can be thought of as a new way of using the Enterprise Java
programming model so that it incorporates OSGi features. For those of you who
have more experience using OSGi than Java EE you can think of Enterprise OSGi
as a new way of using OSGi so it incorporates Java EE and other useful Enterprise
features. Whichever way you look at it, we hope you'll find Enterprise OSGi pretty
exciting. In this chapter, we'll discuss:
Why modularity is important, and how Java stacks up
How OSGi enforces some simple rules to make Java better at modularity
Why Enterprise Java and OSGi traditionally don't play well together
How Enterprise OSGi fixes this, and what the Enterprise OSGi programming model
looks like
We'll start by taking a look at what modularity is, and why it is so important in
software engineering.
OSGi and the Enterprise – why now?
1
©Manning Publications Co. Please post comments or corrections to the Author Online forum:
http://www.manning-sandbox.com/forum.jspa?forumID=762
Licensed to lz <lzfying@gmail.com>
One of the stories of software engineering has been that of increasing abstraction
and resulting improvements in modularity. The earliest programs were written in
assembly language, which mapped directly to the instruction set of the machine
executing the program, or coded directly as machine instructions. There was no
higher level structure above the individual machine codes, very little abstraction,
and limited scope for sharing and re-using programs. Because there was so little
abstraction between the code and the hardware it ran on even slight hardware
changes could mean that the application had to be extensively rewritten. Higher
level languages introduced subroutines, allowing code to be grouped into named
functions and re-used. The abstraction away from raw machine instructions also
meant that code could be re-compiled rather than re-written for new hardware.
Next came libraries, very large groupings of code with a separate interface and
implementation. This abstraction allowed different pieces of code to be changed
independently from one another without rebuilding entire applications, these
libraries are therefore modular code. Finally, object orientation provided
finer-grained modularity by grouping data and behaviour together into
encapsulated objects. This abstraction substantially improved the level to which
changes in a program could be isolated from the rest of the program, and the level
to which code could be reused, marking a dramatic improvement in modularity.
One of the reasons modularity has become increasingly necessary is the scale of
modern computer programs. They are developed by globally dispersed teams and
can occupy several gigabytes of disk space. In this kind of environment, it is
critical that code can be grouped into distinct modules, with clearly delineated
areas of responsibility and well-defined interfaces between modules.
Another striking change to software engineering within the last decade is the
emergence of open source. Almost every software need can now be satisfied with
open source applications. There are open source application servers, IDEs,
databases, and messaging engines. There is also a bewildering range of open
source projects which address particular development needs from Java bytecode
generation to web presentation layers. Because the projects are open source, they
can easily be re-used by other software. As a result most programs now rely on
some open source libraries. Even commercial software often uses open source
componentry; numerous GUI applications, for example, are based on the Eclipse
Rich Client Platform, and many application servers incorporate the Apache Web
Server.
1.1 Why the world needs modularity
2
©Manning Publications Co. Please post comments or corrections to the Author Online forum:
http://www.manning-sandbox.com/forum.jspa?forumID=762
Licensed to lz <lzfying@gmail.com>
剩余445页未读,继续阅读
资源评论
qq_26530753
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 蓝桥杯2024年第十五届省赛真题-前缀总分
- com.qihoo.appstore_300101305-1.apk
- tensorflow-gpu-2.7.1-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.1-cp39-cp39-manylinux2010-x86-64.whl
- 蓝桥杯2024年第十五届省赛真题-传送阵
- com.qihoo.appstore_300101305.apk
- linux之线程同步一.doc
- keil5配色方案10种
- python烟花代码.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功