org.openorb.orb.iiop
Class TaggedComponentHandlerRegistry

java.lang.Object
  extended by org.openorb.orb.iiop.TaggedComponentHandlerRegistry

public final class TaggedComponentHandlerRegistry
extends java.lang.Object

This is the registry for TaggedComponent handlers. New handlers can be registered by using the registerHandler() method.

Author:
Michael Rumpf

Method Summary
static AbstractTagData handleComponent(org.omg.IOP.TaggedComponent component, org.omg.IOP.Codec codec)
          Look for a handlers for the specified component and invoke the handle() method on the handler.
static void registerHandler(TaggedComponentHandler tch)
          Register a new handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerHandler

public static void registerHandler(TaggedComponentHandler tch)
Register a new handler.

Parameters:
tch - A TaggedComponent handler.

handleComponent

public static AbstractTagData handleComponent(org.omg.IOP.TaggedComponent component,
                                              org.omg.IOP.Codec codec)
Look for a handlers for the specified component and invoke the handle() method on the handler.

Parameters:
component - The TaggedComponent to search a handler for.
codec - The Codec used for decoding the TaggedComponent.
Returns:
An instance of AbstractTagData when a handler was found, or null otherwise.