Class CodecFactoryImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.interceptors.CodecFactoryImpl
- All Implemented Interfaces:
Serializable
,Object
,IDLEntity
,CodecFactory
,CodecFactoryOperations
CodecFactoryImpl is the implementation of the Codec Factory, as described
in orbos/99-12-02.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Codec[]
private static final int
private ORB
private static final ORBUtilSystemException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate_codec
(Encoding enc) Creates a codec of the given encoding.private void
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 Details
-
orb
-
wrapper
-
MAX_MINOR_VERSION_SUPPORTED
private static final int MAX_MINOR_VERSION_SUPPORTED- See Also:
-
codecs
-
-
Constructor Details
-
CodecFactoryImpl
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
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
-