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


Java BatchEnvironment类代码示例

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


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

示例1: StubSkeletonWriter

import sun.rmi.rmic.newrmic.BatchEnvironment; //导入依赖的package包/类
/**
 * Creates a StubSkeletonWriter instance for the specified remote
 * implementation class.  The generated code will implement the
 * specified JRMP stub protocol version.
 **/
StubSkeletonWriter(BatchEnvironment env,
                   RemoteClass remoteClass,
                   StubVersion version)
{
    this.env = env;
    this.remoteClass = remoteClass;
    this.version = version;

    stubClassName = Util.binaryNameOf(remoteClass.classDoc()) + "_Stub";
    skeletonClassName =
        Util.binaryNameOf(remoteClass.classDoc()) + "_Skel";

    int i = stubClassName.lastIndexOf('.');
    packageName = (i != -1 ? stubClassName.substring(0, i) : "");
    stubClassSimpleName = stubClassName.substring(i + 1);
    skeletonClassSimpleName = skeletonClassName.substring(i + 1);

    remoteMethods = remoteClass.remoteMethods();
    methodFieldNames = nameMethodFields(remoteMethods);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:StubSkeletonWriter.java

示例2: RemoteClass

import sun.rmi.rmic.newrmic.BatchEnvironment; //导入依赖的package包/类
/**
 * Creates a RemoteClass instance for the specified class.  The
 * resulting object is not yet initialized.
 **/
private RemoteClass(BatchEnvironment env, ClassDoc implClass) {
    this.env = env;
    this.implClass = implClass;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:RemoteClass.java

示例3: forClass

import sun.rmi.rmic.newrmic.BatchEnvironment; //导入依赖的package包/类
/**
 * Creates a RemoteClass instance that represents the RMI-specific
 * information about the specified remote implementation class.
 *
 * If the class is not a valid remote implementation class or if
 * some other error occurs, the return value will be null, and
 * errors will have been reported to the supplied
 * BatchEnvironment.
 **/
static RemoteClass forClass(BatchEnvironment env, ClassDoc implClass) {
    RemoteClass remoteClass = new RemoteClass(env, implClass);
    if (remoteClass.init()) {
        return remoteClass;
    } else {
        return null;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:RemoteClass.java

示例4: envClass

import sun.rmi.rmic.newrmic.BatchEnvironment; //导入依赖的package包/类
/**
 * The JRMP generator does not require an environment class more
 * specific than BatchEnvironment.
 **/
public Class<? extends BatchEnvironment> envClass() {
    return BatchEnvironment.class;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:JrmpGenerator.java


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