Class CodecFactoryImpl

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.interceptors.CodecFactoryImpl
All Implemented Interfaces:
Serializable, Object, IDLEntity, CodecFactory, CodecFactoryOperations

public final class CodecFactoryImpl extends LocalObject implements CodecFactory
CodecFactoryImpl is the implementation of the Codec Factory, as described in orbos/99-12-02.
See Also:
  • Field Details

  • Constructor Details

    • CodecFactoryImpl

      public CodecFactoryImpl(ORB orb)
      Creates a new CodecFactory implementation. Stores the ORB that created this factory, for later use by the Codec.
      Parameters:
      orb - ORB that created this factory
  • Method Details

    • create_codec

      public Codec create_codec(Encoding enc) throws UnknownEncoding
      Creates a codec of the given encoding. The only format recognized by this factory is ENCODING_CDR_ENCAPS, versions 1.0 through 1.(MAX_MINOR_VERSION_SUPPORTED).
      Specified by:
      create_codec in interface CodecFactoryOperations
      Parameters:
      enc - The encoding for which to create a Codec.
      Returns:
      A Codec obtained with the given encoding.
      Throws:
      UnknownEncoding - Thrown if this factory cannot create a Codec of the given encoding.
    • nullParam

      private void nullParam()
      Called when an invalid null parameter was passed. Throws a BAD_PARAM with a minor code of 1