Class CodecFactoryImpl
- java.lang.Object
-
- org.omg.CORBA.LocalObject
-
- com.sun.corba.ee.impl.interceptors.CodecFactoryImpl
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Codec[]
codecs
private static int
MAX_MINOR_VERSION_SUPPORTED
private ORB
orb
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description CodecFactoryImpl(ORB orb)
Creates a new CodecFactory implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Codec
create_codec(Encoding enc)
Creates a codec of the given encoding.private void
nullParam()
Called when an invalid null parameter was passed.-
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
-
-
-
Field Detail
-
orb
private transient ORB orb
-
wrapper
private static final ORBUtilSystemException wrapper
-
MAX_MINOR_VERSION_SUPPORTED
private static final int MAX_MINOR_VERSION_SUPPORTED
- See Also:
- Constant Field Values
-
codecs
private Codec[] codecs
-
-
Constructor Detail
-
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 Detail
-
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 interfaceCodecFactoryOperations
- Parameters:
enc
- The encoding for which to create aCodec
.- 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
-
-