ActivationSpec (Java EE 5)

Java EE API


javax.resource.spi Interface ActivationSpec

All Superinterfaces:
ResourceAdapterAssociation

public interface ActivationSpec
extends ResourceAdapterAssociation


此接口用作标记器。ActivationSpec 的实例必须为 JavaBean,并且必须能够序列化。它包含消息端点的激活配置信息。
英文文档:

This interface serves as a marker. An instance of an ActivationSpec must be a JavaBean and must be serializable. This holds the activation configuration information for a message endpoint.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 void
 
Methods inherited from interface javax.resource.spi.ResourceAdapterAssociation
 

Method Detail

public void validate() throws InvalidPropertyException
部署工具可以调用此方法验证端点部署者提供的所有激活配置信息。这有助于更早地捕获激活配置错误,无需等到端点激活时间验证配置。此自我验证检查行为的实现是可选的。
ThrowsInvalidPropertyException: 指示无效的配置属性设置。
英文文档:

validate

void validate()
              throws InvalidPropertyException
This method may be called by a deployment tool to validate the overall activation configuration information provided by the endpoint deployer. This helps to catch activation configuration errors earlier on without having to wait until endpoint activation time for configuration validation. The implementation of this self-validation check behavior is optional.

Throws:
InvalidPropertyException - indicates invalid configuration property settings.
InvalidPropertyException


Submit a bug or feature

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

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

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