electric.webserver.messages
Class MessageFactories

java.lang.Object
  extended byelectric.webserver.messages.MessageFactories

public class MessageFactories
extends java.lang.Object

MessageFactories maintains a list of the currently registered MessageFactories. New factories must be added early in the startup process, since changes will not be picked up at run-time without a restart. Factories are scanned in order of registration.

Author:
webMethods
See Also:
WebServer

Constructor Summary
MessageFactories()
           
 
Method Summary
static void addFactory(IMessageFactory factory)
          Register a new message factory.
static IMessageFactory getFactory(java.lang.String protocol)
          Retrieve a message factory based on a particular protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFactories

public MessageFactories()
Method Detail

addFactory

public static void addFactory(IMessageFactory factory)
Register a new message factory.

Parameters:
factory -

getFactory

public static IMessageFactory getFactory(java.lang.String protocol)
Retrieve a message factory based on a particular protocol.

Parameters:
protocol -
Returns:
a factory matching the protocol, or null.


copyright© 2001-2004 by webMethods All Rights Reserved.