sun.rmi.rmic.newrmic.BatchEnvironment Java Examples

The following examples show how to use sun.rmi.rmic.newrmic.BatchEnvironment. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StubSkeletonWriter.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #2
Source File: StubSkeletonWriter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #3
Source File: StubSkeletonWriter.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #4
Source File: StubSkeletonWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #5
Source File: StubSkeletonWriter.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #6
Source File: StubSkeletonWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #7
Source File: StubSkeletonWriter.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #8
Source File: StubSkeletonWriter.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #9
Source File: StubSkeletonWriter.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #10
Source File: StubSkeletonWriter.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #11
Source File: StubSkeletonWriter.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #12
Source File: StubSkeletonWriter.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #13
Source File: StubSkeletonWriter.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}
 
Example #14
Source File: RemoteClass.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #15
Source File: RemoteClass.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #16
Source File: RemoteClass.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #17
Source File: RemoteClass.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #18
Source File: RemoteClass.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #19
Source File: RemoteClass.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #20
Source File: RemoteClass.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #21
Source File: RemoteClass.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #22
Source File: RemoteClass.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #23
Source File: RemoteClass.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #24
Source File: RemoteClass.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #25
Source File: RemoteClass.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #26
Source File: RemoteClass.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * 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;
}
 
Example #27
Source File: RemoteClass.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
    }
}
 
Example #28
Source File: RemoteClass.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
    }
}
 
Example #29
Source File: RemoteClass.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
    }
}
 
Example #30
Source File: RemoteClass.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 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;
    }
}