kaos.core.csi.usecase.legacy
Class LegacySystemFactory

java.lang.Object
  extended by kaos.core.csi.usecase.legacy.LegacySystemFactory

public class LegacySystemFactory
extends java.lang.Object


Constructor Summary
LegacySystemFactory()
           
 
Method Summary
static LegacySystem getLegacySystem(java.lang.String[] args)
          This is a factory class returning a reference to an implementation of the LegacySystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacySystemFactory

public LegacySystemFactory()
Method Detail

getLegacySystem

public static LegacySystem getLegacySystem(java.lang.String[] args)
                                    throws java.lang.Exception
This is a factory class returning a reference to an implementation of the LegacySystem. Clients of LegacySystems are expected to ask this factory for instances of LegacySystems. The factory hides from the clients whether the returned LegacySystem is KAoS-aware. In the example below if the property "use.old.legacy.system" is present, then the old Legacy System will be returned, otherwise, KAoS-aware Legacy System is returned. However, the client's code remains unchanged and the client will be totally unaware that the LegacySystem it accesses uses KAoS services. Retrieve a reference to the LegacySystem.

Parameters:
args - command line arguments containing the client's name, transport name for communication with the KAoS Directory Services and domain names, in which the client will be registered. Example arguments: -name LegacyClient1 -transport tcp -domains LegacyDomain
Returns:
a reference to the LegacySystem
Throws:
java.lang.Exception


Copyright © 2006 IHMC All Rights Reserved.