本文整理汇总了Java中org.omg.CORBA.Context类的典型用法代码示例。如果您正苦于以下问题:Java Context类的具体用法?Java Context怎么用?Java Context使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Context类属于org.omg.CORBA包,在下文中一共展示了Context类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create_request
import org.omg.CORBA.Context; //导入依赖的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
)
{
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);
if (returns != null)
g.set_result(returns);
return g;
}
示例2: create_request
import org.omg.CORBA.Context; //导入依赖的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
)
{
gnuRequest request = getRequestInstance(target);
request.setIor(getIor());
request.set_target(target);
request.setOperation(operation);
request.set_args(parameters);
request.m_context = context;
request.set_result(returns);
request.setORB(orb);
return request;
}
示例3: create_request
import org.omg.CORBA.Context; //导入依赖的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
)
{
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);
if (returns != null)
g.set_result(returns);
return g;
}
示例4: create_child
import org.omg.CORBA.Context; //导入依赖的package包/类
public org.omg.CORBA.Context create_child(String child_context_name)
{
if (child_context_name == null) {
throw new BAD_PARAM("Null string reference", 0,
CompletionStatus.COMPLETED_NO);
}
ContextImpl child = new ContextImpl(m_orb, child_context_name, this);
if (m_childs == null) {
m_childs = new java.util.Vector();
}
m_childs.addElement(child);
return child;
}
示例5: ctx
import org.omg.CORBA.Context; //导入依赖的package包/类
public Context ctx()
{
if ( !_paramsCalled || _resultSet || _exceptionSet )
throw _wrapper.contextCalledOutOfOrder() ;
throw _wrapper.contextNotImplemented() ;
}
示例6: create_request
import org.omg.CORBA.Context; //导入依赖的package包/类
public Request create_request(org.omg.CORBA.Object obj,
Context ctx,
String operation,
NVList arg_list,
NamedValue result)
{
return new RequestImpl(orb, obj, ctx, operation, arg_list,
result, null, null);
}
示例7: _create_request
import org.omg.CORBA.Context; //导入依赖的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
)
{
throw new NO_IMPLEMENT(INAPPROPRIATE);
}
示例8: create_request
import org.omg.CORBA.Context; //导入依赖的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;
}