Java Code Examples for com.sun.corba.se.spi.ior.Identifiable

The following examples show how to use com.sun.corba.se.spi.ior.Identifiable. These examples are extracted from open source projects. 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
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example 2
Source Project: openjdk-jdk9   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeCodeSetsComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_CODE_SETS.value) {
        public Identifiable readContents( InputStream in )
        {
            return new CodeSetsComponentImpl( in ) ;
        }
    } ;
}
 
Example 3
Source Project: hottub   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaCodebaseComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_JAVA_CODEBASE.value) {
        public Identifiable readContents( InputStream in )
        {
            String url = in.read_string() ;
            Identifiable comp = new JavaCodebaseComponentImpl( url ) ;
            return comp ;
        }
    } ;
}
 
Example 4
Source Project: hottub   Source File: EncapsulationUtility.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example 5
Source Project: openjdk-jdk8u   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 6
Source Project: openjdk-jdk9   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example 7
Source Project: jdk1.8-source-analysis   Source File: IIOPFactories.java    License: Apache License 2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example 8
Source Project: openjdk-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaCodebaseComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_JAVA_CODEBASE.value) {
        public Identifiable readContents( InputStream in )
        {
            String url = in.read_string() ;
            Identifiable comp = new JavaCodebaseComponentImpl( url ) ;
            return comp ;
        }
    } ;
}
 
Example 9
Source Project: jdk1.8-source-analysis   Source File: IIOPFactories.java    License: Apache License 2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 10
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example 11
Source Project: openjdk-jdk9   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeORBTypeComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
        public Identifiable readContents( InputStream in )
        {
            int type = in.read_ulong() ;
            Identifiable comp = new ORBTypeComponentImpl( type ) ;
            return comp ;
        }
    } ;
}
 
Example 12
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example 13
Source Project: openjdk-jdk9   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example 14
Source Project: TencentKona-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example 15
Source Project: hottub   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 16
Source Project: hottub   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example 17
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example 18
Source Project: TencentKona-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example 19
Source Project: TencentKona-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaSerializationComponentFactory() {
    return new EncapsulationFactoryBase(
                            ORBConstants.TAG_JAVA_SERIALIZATION_ID) {
        public Identifiable readContents(InputStream in) {
            byte version = in.read_octet();
            Identifiable cmp = new JavaSerializationComponent(version);
            return cmp;
        }
    };
}
 
Example 20
Source Project: TencentKona-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 21
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example 22
Source Project: openjdk-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example 23
Source Project: openjdk-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example 24
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example 25
Source Project: hottub   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 26
public static IdentifiableFactory makeRequestPartitioningComponentFactory()
{
    return new EncapsulationFactoryBase(ORBConstants.TAG_REQUEST_PARTITIONING_ID) {
        public Identifiable readContents(InputStream in)
        {
            int threadPoolToUse = in.read_ulong();
            Identifiable comp =
                new RequestPartitioningComponentImpl(threadPoolToUse);
            return comp;
        }
    };
}
 
Example 27
Source Project: openjdk-8   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example 28
/** Read the count from is, then read count Identifiables from
 * is using the factory.  Add each constructed Identifiable to container.
 */
public static void readIdentifiableSequence( List container,
    IdentifiableFactoryFinder finder, InputStream istr)
{
    int count = istr.read_long() ;
    for (int ctr = 0; ctr<count; ctr++) {
        int id = istr.read_long() ;
        Identifiable obj = finder.create( id, istr ) ;
        container.add( obj ) ;
    }
}
 
Example 29
Source Project: jdk8u60   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeORBTypeComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
        public Identifiable readContents( InputStream in )
        {
            int type = in.read_ulong() ;
            Identifiable comp = new ORBTypeComponentImpl( type ) ;
            return comp ;
        }
    } ;
}
 
Example 30
Source Project: jdk8u60   Source File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}