hypercast
Class AdapterFactory

java.lang.Object
  |
  +--hypercast.AdapterFactory

public final class AdapterFactory
extends java.lang.Object

This class implements methods to create a new adapter based on the specifications in the passed configuration object.


Constructor Summary
AdapterFactory()
           
AdapterFactory(boolean debugInitializationMessages)
           
 
Method Summary
 hypercast.I_UnicastAdapter createAdapter(hypercast.HyperCastConfig config, hypercast.I_UnicastAdapter adapter, java.lang.String adapterPropertyString, java.lang.String physicalAddressString)
          This method creates an Adapter based on the attributes specified in the configuration object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterFactory

public AdapterFactory(boolean debugInitializationMessages)

AdapterFactory

public AdapterFactory()
Method Detail

createAdapter

public hypercast.I_UnicastAdapter createAdapter(hypercast.HyperCastConfig config,
                                                hypercast.I_UnicastAdapter adapter,
                                                java.lang.String adapterPropertyString,
                                                java.lang.String physicalAddressString)
This method creates an Adapter based on the attributes specified in the configuration object.

Parameters:
config - an HyperCastConfig object.
adapter - an object that will be passed to the constructor of the creating adapter. TODO: Is it true that this is non-null on creation of node adapter, in which case it is a socket adapter...
adapterPropertyString - string that specifies whether a Node Adapter or Socket Adapter will be created.
physicalAddressString - string containing physical address information.
Throws:
java.lang.IllegalArgumentException - if an illegal node type is passed as an argument for adapterPropertyString
HyperCastConfigException - if values read from the configuration file are not valid or are missing