Java Code Examples for com.sun.corba.se.impl.ior.ObjectKeyFactoryImpl#JAVAMAGIC_OLD

The following examples show how to use com.sun.corba.se.impl.ior.ObjectKeyFactoryImpl#JAVAMAGIC_OLD . 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: OldObjectKeyTemplateBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 2
Source File: OldPOAObjectKeyTemplate.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 3
Source File: OldObjectKeyTemplateBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 4
Source File: OldPOAObjectKeyTemplate.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 5
Source File: OldObjectKeyTemplateBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 6
Source File: OldPOAObjectKeyTemplate.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 7
Source File: OldObjectKeyTemplateBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 8
Source File: OldPOAObjectKeyTemplate.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 9
Source File: OldObjectKeyTemplateBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 10
Source File: OldPOAObjectKeyTemplate.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 11
Source File: OldObjectKeyTemplateBase.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 12
Source File: OldPOAObjectKeyTemplate.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 13
Source File: OldObjectKeyTemplateBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 14
Source File: OldPOAObjectKeyTemplate.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 15
Source File: OldObjectKeyTemplateBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 16
Source File: OldPOAObjectKeyTemplate.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 17
Source File: OldObjectKeyTemplateBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 18
Source File: OldPOAObjectKeyTemplate.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}
 
Example 19
Source File: OldObjectKeyTemplateBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid,
    String orbid, ObjectAdapterId oaid )
{
    super( orb, magic, scid, serverid, orbid, oaid ) ;

    // set version based on magic
    if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        setORBVersion( ORBVersionFactory.getOLD() ) ;
    else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        setORBVersion( ORBVersionFactory.getNEW() ) ;
    else // any other magic should not be here
        throw wrapper.badMagic( new Integer( magic ) ) ;
}
 
Example 20
Source File: OldPOAObjectKeyTemplate.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public ORBVersion getORBVersion()
{
    if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
        return ORBVersionFactory.getOLD() ;
    else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
        return ORBVersionFactory.getNEW() ;
    else
        throw new INTERNAL() ;
}