To run the Spring application, extract the article source code to any folder, such as c: \.
要运行Spring应用程序,请把本文的源代码解压到任意文件夹,例如c: \。
The return type of the method is the bean that is registered to Spring application context.
该方法的返回类型是向Spring应用程序上下文注册的bean。
Transaction attributes for the service are specified in the Spring application context file.
服务的事务属性在Spring应用程序上下文文件中指定。
This means that a Spring application context defines the internal structure of a composite implementation.
这意味着,Spring应用程序上下文定义合成实现的内部结构。
It's similar to a Spring application context in that it is a way to wire parts of an application together.
这一点非常类似与Spring的应用上下文,它是一种连接应用程序不同部分的方法。
So what are the steps for using Spring application context as an implementation within an SCA composite component?
那么,将Spring应用程序上下文用作sca合成组件中的实现需要执行哪些步骤呢?
In this article, you learned how to generate a fully functional Spring application based on model transformations.
在本文中,您学习了怎么样基于模型转换来生成一个全功能状态的Spring应用程序。
First, in the main method, your code grabs the Spring application context. This is the configuration file seen in Listing 1.
首先,在main方法中,您的代码捕获Spring应用程序的上下文,就是您在清单1中看到的配置文件。
However, unlike a Spring application context, an assembly can be distributed and used to describe wiring across applications.
然而,不同于Spring的应用上下文,装配可以是分布的,而且可用于描述跨应用的连接。
And you enable annotation configuration and component scanning in the Spring application context XML configuration, as shown in Listing 5.
然后,在Spring应用程序上下文XML配置中启用注释配置和组件扫描,如清单5所示。
Similarly, the SCA properties defined in the SCA composite can be directly used as bean references within your Spring application context.
类似地,在SCA复合集中定义的sca属性可以直接用作Spring应用程序上下文中的bean引用。
The code segment in Listing 8 shows what needs to be added to the Spring application context file to configure transactions on the service.
清单8中的代码段显示要在此服务上配置事务,需要添加到Spring应用程序上下文文件的内容。
The current article will focus on simplified configuration and new annotation-based functionality in the core of the Spring application context.
本文将主要关注于简化的配置和在Spring应用程序上下文(application context)核心新增的基于注解的功能;
A data source proxy bean would then be declared within the Spring application configuration, which references a WebSphere-managed resource provider.
然后在Spring应用程序配置中声明数据源代理Bean,代理Bean引用WebSphere管理的资源提供者。
Provides a means for you to declare the dependencies of a Spring application context on the settable properties offered by SCA component implementation.
用来在由SCA组件实现提供的可设置属性上声明一个Spring应用程序上下文的依赖项。
The DispatcherServlet loads a Spring application context from the XML file whose name is based on the name of the servlet, with -servlet appended to it.
DispatcherServlet从一个XML文件装入Spring应用程序上下文,XML文件的名称是servlet的名称后面加上- servlet。
You also saw the Grails Bean Builder, which is a completely different way to create a Spring application context from what most Spring applications use.
您还看到了GrailsBeanBuilder,它以完全不同的方式创建大多数Spring应用程序使用的Spring应用程序上下文。
It is better to write a new Spring application context file rather than using the existing context files because it helps modularize application contexts.
最好编写一个新的Spring应用程序上下文文件,而不是使用现有的上下文文件,因为这有助于模块化应用程序上下文。
What we like so far is the fact that it's a very lightweight solution which is very easy to combine with the rest of the spring application we were writing.
它是相当轻量级的解决方案,可以轻易地与我们编写的其余Spring应用程序相结合。
Introspect the target application context definition file to determine the declared SCA service, reference, and properties within your Spring application context.
内省目标应用程序上下文定义文件,确定在Spring应用程序上下文中声明的SCA服务、引用和属性。
Depending on which of these options you use for a Groovy bean, you can choose among several ways to define and configure your Groovy beans in a Spring application context.
可以选择不同的方法在Spring应用程序上下文中定义和配置Groovybean,这取决于Groovybean采用的选项。
The mechanism for converting Groovy scripts into beans involves reading the Groovy script, compiling it, and making it available as a bean in the Spring application context.
将groovy脚本转换为bean的机制包括读取并编译groovy脚本,然后使之可以在Spring应用程序上下文中作为bean使用。
The integration with Spring is at the SCA composite level, where a Spring application context provides a complete composite implementation, exposing services and wiring references through SCA.
与Spring的集成处于sca合成级别,其中,Spring应用程序上下文提供完整的合成实现,通过SCA公开服务并连接引用。
The direct use of SCA references and properties within your Spring application context file, without custom SCA namespaces, is called implicit declaration of SCA services, references, and properties.
在Spring应用程序上下文文件中直接使用SCA引用和属性(无需自定义sca名称空间)称为sca服务、引用和属性的隐式声明。
The change to the Spring application context also adds a layer of laziness to the JNDI lookup by setting lookup-on-startup to false, which also requires the proxy-interface attribute to be specified.
对Spring应用程序上下文的更改还通过将lookup - on -startup设置为false添加延迟层到JNDI查询,这也需要指定proxy - interface属性。
In this article, I use a relatively simple exercise — adding notification events to Spring-based application methods and attributes — to help you get comfortable with customizing Spring JMX.
在本文中,我使用了一种相对简单的操作——为基于Spring的应用程序的方法和属性增加通知事件——以帮助您熟悉对SpringJMX的定制。
Listing 4 shows an example of a Hibernate application without Spring.
清单4展示了一个没有Spring的Hibernate应用程序示例。
The Spring AOP module provides transaction management services for objects in any Spring-based application.
SpringAOP模块为基于Spring 的应用程序中的对象提供了事务管理服务。
The first two articles focused on building web applications using Spring Roo's rapid application development environment.
前两篇文章专注于使用SpringRoo的快速应用开发环境构建Web应用程序。
Most of the examples depicted within this article series are based upon the Spring PetClinic sample application.
这一系列的三篇文章中引用的例子都基于SpringPetClinic应用程序范例。
应用推荐