com.sun.corba.se.spi.ior.IdentifiableFactory Java Examples

The following examples show how to use com.sun.corba.se.spi.ior.IdentifiableFactory. 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: IIOPFactories.java    From openjdk-jdk8u with 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 #2
Source File: IIOPFactories.java    From openjdk-jdk8u-backup with 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 #3
Source File: IdentifiableFactoryFinderBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #4
Source File: IIOPFactories.java    From hottub with 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 #5
Source File: IIOPFactories.java    From openjdk-8-source with 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 #6
Source File: IIOPFactories.java    From openjdk-jdk9 with 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 File: IIOPFactories.java    From openjdk-jdk9 with 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 #8
Source File: IIOPFactories.java    From hottub with 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 #9
Source File: IIOPFactories.java    From openjdk-8 with 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 #10
Source File: IIOPFactories.java    From openjdk-8-source with 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 #11
Source File: IIOPFactories.java    From openjdk-jdk9 with 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 #12
Source File: IdentifiableFactoryFinderBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected IdentifiableFactory getFactory(int id)
{
    Integer ident = new Integer( id ) ;
    IdentifiableFactory factory = (IdentifiableFactory)(map.get(
        ident ) ) ;
    return factory ;
}
 
Example #13
Source File: IdentifiableFactoryFinderBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #14
Source File: IdentifiableFactoryFinderBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected IdentifiableFactory getFactory(int id)
{
    Integer ident = new Integer( id ) ;
    IdentifiableFactory factory = (IdentifiableFactory)(map.get(
        ident ) ) ;
    return factory ;
}
 
Example #15
Source File: IIOPFactories.java    From openjdk-jdk8u with 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 #16
Source File: IIOPFactories.java    From openjdk-jdk9 with 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 #17
Source File: IIOPFactories.java    From openjdk-8 with 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 #18
Source File: IIOPFactories.java    From openjdk-jdk8u with 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 #19
Source File: IIOPFactories.java    From openjdk-jdk8u with 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 #20
Source File: IIOPFactories.java    From openjdk-jdk8u with 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 #21
Source File: IIOPFactories.java    From openjdk-jdk8u with 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 #22
Source File: IIOPFactories.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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 #23
Source File: IdentifiableFactoryFinderBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #24
Source File: IdentifiableFactoryFinderBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
protected IdentifiableFactory getFactory(int id)
{
    Integer ident = new Integer( id ) ;
    IdentifiableFactory factory = (IdentifiableFactory)(map.get(
        ident ) ) ;
    return factory ;
}
 
Example #25
Source File: IIOPFactories.java    From JDKSourceCode1.8 with MIT License 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
Source File: IdentifiableFactoryFinderBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #27
Source File: IIOPFactories.java    From hottub with 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 #28
Source File: IIOPFactories.java    From JDKSourceCode1.8 with MIT License 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 #29
Source File: IIOPFactories.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
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 #30
Source File: IIOPFactories.java    From JDKSourceCode1.8 with MIT License 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 ;
        }
    } ;
}