- 博客(0)
- 资源 (9)
- 收藏
- 关注
Spring Framework 概述
你可能正在想“不过是另一个的框架”。如今有这么多J2EE 框架,并且你可以建立你自
己的框架,为什么你应该读这篇文章或者下载Spring框架(或者你还没有下载)?社区中持续
的高关注度暗示了Spring一定有它的价值;这也有很多技术原因。
以下的几个原因让我相信Spring是独一无二的:
l 它关注于很多其它框架没有关注的地方。Spring 着重于提供一种管理你业务对象的方
法。
l Spring是全面的、模块化的。Spring采用分层架构,这意味着你可以仅选择其中任何一
个独立的部分,而它的架构是内部一致的。因此你能从学习中获得最大的价值。例如,
你可以仅用Spring 来简化你的JDBC 使用,或者你可以选择使用Spring 来管理你的业
务对象。把Spring增量地引入现有的项目中是十分容易的。
l Spring从设计之初就是要帮助你写出易于测试的代码。Spring是测试驱动项目的一个理
想框架。
l Spring是一个日益重要的集成技术,它的角色已得到一些大厂商的认可。
Spring不需要你的项目再依赖于另一个框架。Spring也许能称得上是一个“一站式”商店,
提供了大多数传统应用所需要的基础结构。它还提供了别的框架没有涉及到的东西。
2008-12-12
Flex_Chapter20
In the previous chapter, we described how Macromedia Flex integrates with business logic exposed
as a set of web services in a service-oriented architecture (SOA) environment.
In collaboration with the Flex Web Service proxy, a Rich Internet Application (RIA) delivered with
Flex can invoke web services located on a remote machine in a loosely coupled fashion, or it can be
used in a more tightly coupled way to bind a rich client interface to middleware exposed through a
web service application programming interface (API). For middleware residing in the .NET architecture,
this offers a simple way of performing .NET integration, as the following example class
shows:
using System;
using System.Web.Services;
[WebService(Namespace=”http://banking.iterationtwo.com/”,Description=”Fetch Account
Details for Customers”)]
public class AccountDelegate
{
[WebMethod(Description=”Get Accounts for Given Customer Number”)]
public Account[] getAccounts ( String customerID )
{
// business logic goes here...
return accounts;
}
}
In the preceding C# class, the WebMethod metadata on the getAccounts() method ensures that
.NET will expose the method on the AccountDelegate class, which itself has been exposed as a Web-
Service using the WebService metadata.
2008-12-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅