233 lines
12 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
org.omg.PortableInterceptor
</div>
<h2 class="title" title="Interface IORInfoOperations">Interface IORInfoOperations</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Known Subinterfaces:
</dt>
<dd>
<span><a href="../../../org/omg/PortableInterceptor/IORInfo.html" title="在org.omg.PortableInterceptor中的接口">IORInfo</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">IORInfoOperations</span></pre>
<div class="block">
<span>在IOR构造期间提供服务器端ORB服务访问适用的策略以及添加组件的能力。</span>
<span>ORB将该接口的实现实例作为参数传递给<code>IORInterceptor.establish_components</code></span>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<span><a href="../../../org/omg/PortableInterceptor/IORInterceptor.html" title="在org.omg.PortableInterceptor中的接口"><code>IORInterceptor</code></a></span>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../org/omg/PortableInterceptor/ObjectReferenceTemplate.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceTemplate</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#adapter_template--">adapter_template</a></span>()</code>
<div class="block">
返回刚刚创建的对象适配器的对象引用模板并运行IOR拦截器。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#add_ior_component_to_profile-org.omg.IOP.TaggedComponent-int-">add_ior_component_to_profile</a></span>(<a href="../../../org/omg/IOP/TaggedComponent.html" title="class in org.omg.IOP">TaggedComponent</a> tagged_component, int profile_id)</code>
<div class="block">
便携式ORB服务实现从establish_components的
<code>establish_components</code>中调用
<code>add_ior_component_to_profile</code> 以在构造IOR时将包含的组中添加标记组件。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#add_ior_component-org.omg.IOP.TaggedComponent-">add_ior_component</a></span>(<a href="../../../org/omg/IOP/TaggedComponent.html" title="class in org.omg.IOP">TaggedComponent</a> tagged_component)</code>
<div class="block">
便携式ORB服务实现从establish_components的
<code>establish_components</code>中调用
<code>add_ior_component</code> ,以便在
<code>establish_components</code>时将包含的组中添加标记组件。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../org/omg/PortableInterceptor/ObjectReferenceFactory.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceFactory</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#current_factory--">current_factory</a></span>()</code>
<div class="block">
读取时返回当前工厂该工厂将用于为刚创建的对象适配器创建对象引用并正在运行IOR拦截器。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#current_factory-org.omg.PortableInterceptor.ObjectReferenceFactory-">current_factory</a></span>(<a href="../../../org/omg/PortableInterceptor/ObjectReferenceFactory.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceFactory</a> newCurrent_factory)</code>
<div class="block">
读取时返回当前工厂该工厂将用于为刚创建的对象适配器创建对象引用并正在运行IOR拦截器。
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../../org/omg/CORBA/Policy.html" title="interface in org.omg.CORBA">Policy</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#get_effective_policy-int-">get_effective_policy</a></span>(int type)</code>
<div class="block">
允许ORB服务实现来确定特定类型的服务器端策略对于正在构造的IOR有效。
</div> </td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#manager_id--">manager_id</a></span>()</code>
<div class="block">
返回刚刚创建的对象适配器的适配器管理器ID并运行IOR拦截器。
</div> </td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/IORInfoOperations.html#state--">state</a></span>()</code>
<div class="block">
返回刚刚创建的对象适配器的适配器状态并正在运行IOR拦截器。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="get_effective_policy-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>get_effective_policy</h4> <pre><a href="../../../org/omg/CORBA/Policy.html" title="interface in org.omg.CORBA">Policy</a> get_effective_policy(int type)</pre>
<div class="block">
<span>允许ORB服务实现来确定特定类型的服务器端策略对于正在构造的IOR有效。</span>
<span>当构造的IOR是使用POA实现的对象时传递给创建该POA的<code>PortableServer.POA.create_POA</code>调用的所有策略对象都可以通过<code>get_effective_policy</code>进行<code>get_effective_policy</code></span>
<p> <span>如果ORB不知道给定类型的策略则此操作将抛出<code>INV_POLICY</code>标准的次要代码为2。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>type</code> - 指定要返回的策略类型的int。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<span>请求类型的有效<code>CORBA.Policy</code>对象。</span>
<span>如果给定的策略类型是已知的,但没有该类型的策略生效,那么此操作将返回一个零对象引用。</span>
</dd>
</dl> </li>
</ul> <a name="add_ior_component-org.omg.IOP.TaggedComponent-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>add_ior_component</h4> <pre>void add_ior_component(<a href="../../../org/omg/IOP/TaggedComponent.html" title="class in org.omg.IOP">TaggedComponent</a> tagged_component)</pre>
<div class="block">
<span>便携式ORB服务实现从establish_components的<code>establish_components</code>中调用<code>add_ior_component</code> ,以便在<code>establish_components</code>时将包括的组中添加一个标记的组件。</span>
<span>该组件中的组件将包含在所有配置文件中。</span>
<p> <span>可能存在具有相同组件ID的任何数量的组件。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>tagged_component</code> - 要添加的IOP.TaggedComponent。
</dd>
</dl> </li>
</ul> <a name="add_ior_component_to_profile-org.omg.IOP.TaggedComponent-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>add_ior_component_to_profile</h4> <pre>void add_ior_component_to_profile(<a href="../../../org/omg/IOP/TaggedComponent.html" title="class in org.omg.IOP">TaggedComponent</a> tagged_component,
int profile_id)</pre>
<div class="block">
<span>便携式ORB服务实现从establish_components的<code>establish_components</code>中调用<code>add_ior_component_to_profile</code> 以在构造IOR时将包含的组中添加标记的组件。</span>
<span>该组件中的组件将包含在指定的配置文件中。</span>
<p> <span>可能存在具有相同组件ID的任何数量的组件。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>tagged_component</code> - 要添加的
<code>IOP.TaggedComponent</code>
</dd>
<dd>
<code>profile_id</code> - 将添加此组件的配置文件的配置文件ID。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code>BAD_PARAM</code> - 如果给定的配置文件ID未定义已知配置文件或者不可能向该配置文件添加组件则抛出标准的次要代码29。
</dd>
</dl> </li>
</ul> <a name="manager_id--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>manager_id</h4> <pre>int manager_id()</pre>
<div class="block">
返回刚刚创建的对象适配器的适配器管理器ID并运行IOR拦截器。
</div> </li>
</ul> <a name="state--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>state</h4> <pre>short state()</pre>
<div class="block">
返回刚刚创建的对象适配器的适配器状态并正在运行IOR拦截器。
</div> </li>
</ul> <a name="adapter_template--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>adapter_template</h4> <pre><a href="../../../org/omg/PortableInterceptor/ObjectReferenceTemplate.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceTemplate</a> adapter_template()</pre>
<div class="block">
返回刚刚创建的对象适配器的对象引用模板并运行IOR拦截器。
</div> </li>
</ul> <a name="current_factory--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>current_factory</h4> <pre><a href="../../../org/omg/PortableInterceptor/ObjectReferenceFactory.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceFactory</a> current_factory()</pre>
<div class="block">
<span>读取时返回当前工厂该工厂将用于为刚创建的对象适配器创建对象引用并正在运行IOR拦截器。</span>
<span>默认情况下此工厂与adapter_template属性的值相同。</span>
<span>current_factory也可以设置为IORInterceptor_3_0中的另一个对象引用模板。</span>
</div> </li>
</ul> <a name="current_factory-org.omg.PortableInterceptor.ObjectReferenceFactory-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>current_factory</h4> <pre>void current_factory(<a href="../../../org/omg/PortableInterceptor/ObjectReferenceFactory.html" title="interface in org.omg.PortableInterceptor">ObjectReferenceFactory</a> newCurrent_factory)</pre>
<div class="block">
On read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors. By default, this factory is the same as the value of the adapter_template attribute. The current_factory may also be set to another object reference template inside an IORInterceptor_3_0.
</div> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>