org.purl.sword.client
Class ClientFactory

java.lang.Object
  extended by org.purl.sword.client.ClientFactory

public class ClientFactory
extends Object

Entry point for the SWORD Demonstration Client. This will parse the list of command line options and load either a Command Line client or a GUI client.

Author:
Neil Taylor

Constructor Summary
ClientFactory()
          Create a new instance.
 
Method Summary
 ClientType createClient(ClientOptions options)
          Create a client.
static void main(String[] args)
          Start the application and determine which client should be loaded.
static String usage()
          Generate a string that specifies the command line options for this program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientFactory

public ClientFactory()
Create a new instance.

Method Detail

usage

public static String usage()
Generate a string that specifies the command line options for this program.

Returns:
A list of the options for this program.

createClient

public ClientType createClient(ClientOptions options)
Create a client. If GUI mode is set, a GUI client is created. Otherwise, a command line client is created.

Parameters:
options - The list of options extracted from the command line.
Returns:
A new client.

main

public static void main(String[] args)
Start the application and determine which client should be loaded. The application currently has two modes: GUI and client. The GUI mode is the default option.

Parameters:
args - The command line arguments.


Copyright © 2013 DuraSpace. All Rights Reserved.