ca.quine.factorygen
Interface IRegistrant

All Known Subinterfaces:
IHandler, IMarshaller
All Known Implementing Classes:
ArrayListMarshaller, MessageHandler

public interface IRegistrant

An IRegistrant knows how to register itself; it knows what types of things that it can work with, (see getRegistrationKeys()). IRegistrants are registered by a subclass of Registrar.


Method Summary
 Object[] getRegistrationKeys()
          Returns an array of Objects, each one implementing hashCode and equals, which is the group of keys by which the implementor can be obtained from the Registrar.
 

Method Detail

getRegistrationKeys

public Object[] getRegistrationKeys()
Returns an array of Objects, each one implementing hashCode and equals, which is the group of keys by which the implementor can be obtained from the Registrar. For a "marshaller" that knows how to marshal a particular Object, the Class (or classes) of the Object might be used as a key (or keys), or a String (or Strings) representing the name of the type (or types) handled by the marshaller could be used as the key (or keys). For a message handler, an Integer (or Integers) representing the message type (or types) could be used as the key (or keys).

Returns:
An array of Objects that represent the kinds of things the implementor can handle.