当前位置: 首页>>代码示例>>Java>>正文


Java SetOverrideType类代码示例

本文整理汇总了Java中org.omg.CORBA.SetOverrideType的典型用法代码示例。如果您正苦于以下问题:Java SetOverrideType类的具体用法?Java SetOverrideType怎么用?Java SetOverrideType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SetOverrideType类属于org.omg.CORBA包,在下文中一共展示了SetOverrideType类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: _set_policy_override

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
                                                 SetOverrideType how
                                                )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
开发者ID:vilie,项目名称:javify,代码行数:13,代码来源:LocalObject.java

示例2: setPolicies

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
public synchronized void setPolicies(Policy[] policies,
                                     SetOverrideType set_add)
    throws org.omg.CORBA.InvalidPolicies
{

    if (set_add == SetOverrideType.SET_OVERRIDE) {
        clear();
    }

    java.util.Vector errors = null;

    for (short i = 0; i < policies.length; i++) {
        try {
            setPolicy(policies[i]);
        }
        catch (PolicyError pe) {
            if (errors == null)
                errors = new java.util.Vector();
            errors.add(new Short(i));
        }
    }

    if (errors != null) {
        InvalidPolicies ex = new InvalidPolicies();

        int size = errors.size();

        ex.indices = new short[size];

        for (int i = 0; i < size; i++)
            ex.indices[i] = ((Short) errors.elementAt(i)).shortValue();

        throw ex;
    }

}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:37,代码来源:PolicyContext.java

示例3: _set_policy_override

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
public org.omg.CORBA.Object _set_policy_override( Policy[] policies,
    SetOverrideType set_add)
{
    return object._set_policy_override( policies, set_add ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:StubWrapper.java

示例4: set_policy_override

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
 * Returns a new object with the new policies either replacing or
 * extending the current policies, depending on the second parameter.
 *
 * @param target the CORBA object, to that this operation must be applied.
 * @param policies the policy additions or replacements.
 * @param how either {@link SetOverrideType#SET_OVERRIDE} to override the
 * current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace
 * them.
 *
 * @throws NO_IMPLEMENT, always (following the 1.4 specification).
 *
 * @return the new reference with the changed policies.
 */
public org.omg.CORBA.Object set_policy_override(org.omg.CORBA.Object target,
                                                Policy[] policies,
                                                SetOverrideType how
                                               )
{
  throw new NO_IMPLEMENT(WHY);
}
 
开发者ID:vilie,项目名称:javify,代码行数:22,代码来源:Delegate.java

示例5: _set_policy_override

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
 * Returns a new object with the new policies either replacing or
 * extending the current policies, depending on the second parameter.
 *
 * @param policies the policy additions or replacements.
 * @param how either {@link SetOverrideType#SET_OVERRIDE} to override the
 * current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace
 * them.
 */
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
                                                 SetOverrideType how
                                                )
{
  return delegate.set_policy_override(this, policies, how);
}
 
开发者ID:vilie,项目名称:javify,代码行数:16,代码来源:ObjectImpl.java

示例6: _set_policy_override

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
 * The POAs cannot be created by this method.
 *
 * @specnote this is also not possible in Suns jdk at least till 1.4.
 *
 * @throws NO_IMPLEMENT always.
 */
public org.omg.CORBA.Object _set_policy_override(Policy[] policies,
                                                 SetOverrideType how
                                                )
{
  throw new NO_IMPLEMENT("Use createPOA instead.");
}
 
开发者ID:vilie,项目名称:javify,代码行数:14,代码来源:gnuPOA.java

示例7: SetOverrideTypeHolder

import org.omg.CORBA.SetOverrideType; //导入依赖的package包/类
/**
 * Create the initialised instance.
 *
 * @param initialValue the initial value.
 */
public SetOverrideTypeHolder(SetOverrideType initialValue)
{
  value = initialValue;
}
 
开发者ID:vilie,项目名称:javify,代码行数:10,代码来源:SetOverrideTypeHolder.java


注:本文中的org.omg.CORBA.SetOverrideType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。