Spring Framework 1.1.4 釋出
我們很高興地宣佈 Spring Framework 1.1.4 已釋出。這是 1.1 系列中的一個錯誤修復和次要增強版本。
</span>Among the new
特性包括
- 添加了 LazyInitTargetSource,用於從 BeanFactory 延遲訪問單例(在第一次呼叫時延遲初始化)
- 添加了 ServiceLocatorFactoryBean,允許將自定義服務定位器介面方法對映到 BeanFactory.getBean 呼叫
- 重構了 ResourcePatternResolver 以擴充套件 ResourceLoader,用於在 ResourceLoaderAware 中檢查 ResourcePatternResolver
- 使 BindException 可序列化,前提是包含的目標物件是可序列化的
- 添加了 LazyConnectionDataSourceProxy,用於在使用原生 JDBC 或 Hibernate 事務時延遲獲取 JDBC 連線
- 在預設的 sql-error-codes.xml 檔案中添加了 "Sybase-jConnect",用於資料庫產品名稱 "Adaptive Server Enterprise"
- 在 JdbcTemplate 中添加了帶引數型別的過載方法 "queryForList"/"queryForObject"/"queryForLong"/"queryForInt"
- 在 HibernateTemplate 中添加了 "alwaysUseNewSession" 標誌,即使在存在預繫結 Session 的情況下也強制使用新 Session
- HibernateTemplate 預設代理暴露的 Sessions,應用查詢快取設定和事務超時
- 在 AbstractRemoteSlsbInvokerInterceptor 中添加了 "isConnectFailure(RemoteException)" 鉤子,用於自定義失敗檢查
- 在 (Jndi)RmiClientInterceptor 中添加了 "isConnectFailure(RemoteException)" 鉤子,用於自定義連線失敗檢查
- 添加了 JaxRpcServicePostProcessor 介面,用於 JAX-RPC 服務的可重用自定義型別對映等
- 在 LocalJaxRpcServiceFactory 及其子類(包括 JaxRpcPortProxyFactoryBean)中添加了 "servicePostProcessors" 屬性
- 在 JmsTemplate 中添加了 "messageIdEnabled" 和 "messageTimestampEnabled" 屬性,用於在生產者端停用 ID/時間戳
- 在 JmsTemplate 中添加了 "pubSubNoLocal" 屬性,導致在建立 MessageConsumer 時指定 NoLocal 標誌
- 在 JmsTemplate 中添加了接受 JMS 訊息選擇器的 "receiveSelected" 和 "receivedSelectedAndConvert" 方法
- 在 SchedulerFactoryBean 中添加了 "schedulerListeners", "(global)JobListeners", "(global)TriggerListeners" bean 屬性
- 在 JobDetailBean, CronTriggerBean, SimpleTriggerBean 中(分別)添加了 "jobListenerNames"/"triggerListenerNames" 屬性
- 添加了 ServletContextAttributeFactoryBean,用於暴露現有的 ServletContext 屬性以供 bean 引用
- 添加了 ServletContextAttributeExporter,用於獲取 Spring 定義的物件並將其暴露為 ServletContext 屬性
- 添加了 ServletContextPropertyPlaceholderConfigurer,這是一個子類,它會回退到 web.xml 的 context-param 條目
- 在 FrameworkServlet 中添加了 "publishEvents" init-param,允許關閉 RequestHandledEvents 的釋出
- Spring JSP 標籤也可以在 DispatcherServlet 之外工作,會回退到根 WebApplicationContext 和 JSTL/請求本地化設定