public interface PolicyFactoryOperations
CORBA.ORB.create_policy策略类型。
可移植ORB服务实现注册的实例PolicyFactory ,以使其策略类型使用构建ORB初始化期间接口CORBA.ORB.create_policy 。 保留所有以ORBInitInfo政策的保护ORBInitInfo 。
| Modifier and Type | Method and Description |
|---|---|
Policy |
create_policy(int type, Any value)
返回衍生自适当的接口的实例
CORBA.Policy ,其值对应于指定的任何。
|
Policy create_policy(int type, Any value) throws PolicyError
CORBA.Policy ,其值对应于指定的任何。
该ORB称create_policy在所注册PolicyFactory实例时CORBA.ORB.create_policy被称为该PolicyType其下PolicyFactory已被注册。 create_policy操作然后返回从CORBA.Policy派生的适当接口的实例,其值对应于指定的任何值。 如果不能,它将抛出一个例外,如CORBA.ORB.create_policy CORBA.ORB.create_policy 。
type - 指定正在创建的策略类型的int。
value -与构造的任何含数据
CORBA.Policy 。
CORBA.Policy object of the specified type and value.
-
异常
-
PolicyError
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.
本帮助文档是使用
《谷歌翻译》翻译,请与英文版配合使用 by--QQ:654638585