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


Java ContextList类代码示例

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


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

示例1: create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * Create the request for the local call.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
                              String operation, NVList parameters,
                              NamedValue returns, ExceptionList exceptions,
                              ContextList ctx_list
                             )
{
  if (orb instanceof OrbFunctional)
    {
      ((OrbFunctional) orb).ensureRunning();
    }
  gnuRequest g = new gnuRequest();
  g.setORB(orb);
  g.setOperation(operation);
  g.setIor(ior);
  g.m_target = target;
  g.ctx(context);
  g.set_args(parameters);
  g.set_exceptions(exceptions);
  g.set_context_list(ctx_list);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
开发者ID:vilie,项目名称:javify,代码行数:27,代码来源:SimpleDelegate.java

示例2: create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * Creates the request to invoke the method on this object.
 *
 * @param target the object, for that the operation must be invoked.
 * @param context context (null allowed)
 * @param operation the method name
 * @param parameters the method parameters
 * @param returns the return value holder
 *
 * @return the created request.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String operation, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list
)
{
  gnuRequest request = getRequestInstance(target);

  request.setIor(ior);
  request.set_target(target);

  request.setOperation(operation);
  request.set_args(parameters);
  request.m_context = context;
  request.set_result(returns);
  request.set_exceptions(exceptions);
  request.set_context_list(ctx_list);
  request.setORB(orb);

  return request;
}
 
开发者ID:vilie,项目名称:javify,代码行数:32,代码来源:IorDelegate.java

示例3: create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:CorbaClientDelegateImpl.java

示例4: contexts

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:34,代码来源:ClientRequestInfoImpl.java

示例5: _create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public Request _create_request(Context context, String operation,
                               NVList parameters, NamedValue returns,
                               ExceptionList exceptions, ContextList ctx_list
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
开发者ID:vilie,项目名称:javify,代码行数:14,代码来源:LocalObject.java

示例6: create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * Create request for using with DII.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String method, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  rq.set_exceptions(exceptions);
  rq.set_context_list(ctx_list);
  return rq;
}
 
开发者ID:vilie,项目名称:javify,代码行数:18,代码来源:LocalDelegate.java

示例7: _create_request

import org.omg.CORBA.ContextList; //导入依赖的package包/类
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:StubWrapper.java

示例8: RequestImpl

import org.omg.CORBA.ContextList; //导入依赖的package包/类
public RequestImpl (ORB orb,
                    org.omg.CORBA.Object targetObject,
                    Context ctx,
                    String operationName,
                    NVList argumentList,
                    NamedValue resultContainer,
                    ExceptionList exceptionList,
                    ContextList ctxList)
{

    // initialize the orb
    _orb    = orb;
    _wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_INVOCATION ) ;

    // initialize target, context and operation name
    _target     = targetObject;
    _ctx    = ctx;
    _opName = operationName;

    // initialize argument list if not passed in
    if (argumentList == null)
        _arguments = new NVListImpl(_orb);
    else
        _arguments = argumentList;

    // set result container.
    _result = resultContainer;

    // initialize exception list if not passed in
    if (exceptionList == null)
        _exceptions = new ExceptionListImpl();
    else
        _exceptions = exceptionList;

    // initialize context list if not passed in
    if (ctxList == null)
        _ctxList = new ContextListImpl(_orb);
    else
        _ctxList = ctxList;

    // initialize environment
    _env    = new EnvironmentImpl();

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:46,代码来源:RequestImpl.java

示例9: contexts

import org.omg.CORBA.ContextList; //导入依赖的package包/类
public ContextList contexts()
{
    return _ctxList;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestImpl.java

示例10: create_context_list

import org.omg.CORBA.ContextList; //导入依赖的package包/类
/**
 * Create a ContextList
 *
 * @result          ContextList created
 */
public synchronized org.omg.CORBA.ContextList create_context_list()
{
    checkShutdownState();
    return new ContextListImpl(this);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ORBImpl.java


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