ConnectionSpec (Java EE 5)

Java EE API


javax.resource.cci Interface ConnectionSpec


public interface ConnectionSpec


应用程序组件使用 ConnectionSpec 将特定于连接请求的属性传递给 ConnectionFactory.getConnection 方法。

建议将 ConnectionSpec 接口作为 JavaBean 实现,以支持各种工具。必须通过获取方法和设置方法模式定义 ConnectionSpec 实现类上的属性。

CCI 规范为 ConnectionSpec 定义一组标准属性。可以在派生接口上定义属性,也可以在空的 ConnectionSpec 接口的实现类上定义属性。此外,资源适配器还可以定义特定于其底层 EIS 的其他属性。

英文文档:

ConnectionSpec is used by an application component to pass connection request-specific properties to the ConnectionFactory. getConnection method.

It is recommended that the ConnectionSpec interface be implemented as a JavaBean to support tools. The properties on the ConnectionSpec implementation class must be defined through the getter and setter methods pattern.

The CCI specification defines a set of standard properties for an ConnectionSpec. The properties are defined either on a derived interface or an implementation class of an empty ConnectionSpec interface. In addition, a resource adapter may define additional properties specific to its underlying EIS.

Version:
1.0 Public Draft 1
Author:
Rahul Sharma
See Also:
ConnectionFactory



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!