本文整理汇总了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);
}
示例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;
}
示例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;
}
}
示例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;
}