org.openorb.orb.pi
Class CodecFactoryManagerImpl

java.lang.Object
  |
  +--org.omg.CORBA.LocalObject
        |
        +--org.openorb.orb.pi.CodecFactoryManagerImpl
All Implemented Interfaces:
org.omg.IOP.CodecFactory, CodecFactoryManager, org.omg.IOP.CodecFactoryOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object, java.io.Serializable

public class CodecFactoryManagerImpl
extends org.omg.CORBA.LocalObject
implements org.omg.IOP.CodecFactory, CodecFactoryManager

This class implements the Codec Factory. It is used to return a Codec according to a encoding format.

Version:
$Revision: 1.4 $ $Date: 2004/05/13 04:09:27 $
Author:
Chris Wood
See Also:
Serialized Form

Constructor Summary
CodecFactoryManagerImpl()
           
 
Method Summary
 org.omg.IOP.Codec create_codec(org.omg.IOP.Encoding enc)
          Operation create_codec creates a codec from an encoding.
 void register_codec_factory(org.omg.IOP.Encoding enc, org.omg.IOP.CodecFactory factory)
          Registration point for codec factories.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _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_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

CodecFactoryManagerImpl

public CodecFactoryManagerImpl()
Method Detail

create_codec

public org.omg.IOP.Codec create_codec(org.omg.IOP.Encoding enc)
                               throws org.omg.IOP.CodecFactoryPackage.UnknownEncoding
Operation create_codec creates a codec from an encoding.
Specified by:
create_codec in interface org.omg.IOP.CodecFactoryOperations
Parameters:
enc - The encoding to create a codec from.
Returns:
The codec created from the specified encoding.
Throws:
org.omg.IOP.CodecFactoryPackage.UnknownEncoding - When the factory is null.

register_codec_factory

public void register_codec_factory(org.omg.IOP.Encoding enc,
                                   org.omg.IOP.CodecFactory factory)
Registration point for codec factories.
Specified by:
register_codec_factory in interface CodecFactoryManager
Parameters:
enc - The encopding to register a factory for.
factory - The factory for the specified encoding.