WebObjects 5.4.2

com.webobjects.eoapplication.client
Class EOClientApplicationSupport

java.lang.Object
  extended by com.webobjects.eoapplication.EOApplication.ApplicationSupport
      extended by com.webobjects.eoapplication.client.EOClientApplicationSupport

public class EOClientApplicationSupport
extends EOApplication.ApplicationSupport

EOClientApplicationSupport is an EOApplication.ApplicationSupport subclass used with three-tier Java Client applications. The main function on EOClientApplicationSupport is the entry point used for these kind of applications.


Constructor Summary
EOClientApplicationSupport(boolean remoteRequestArguments)
          Creates a new EOClientApplicationSupport object.
 
Method Summary
 void acknowledgeQuit()
          Notifies the server that the client is about to quit so that it can terminate the session.
 EODistributionChannel channelWithParameters(NSDictionary parameters)
          Creates a new distribution channel to be used with the application.
static void main(String[] argv)
          Main entry point for three-tier Java Client applications.
 void prepareApplication(EOApplication application, NSDictionary arguments)
          Sets the application name and a client-side specific defaults manager.
 void prepareClasses(NSDictionary arguments)
          Initializes some client-side principal classes and the distribution channel if that has not already happened.
 void prepareGlobalObjects(NSDictionary arguments)
          Initializes all client-side principal classes and a client-side specific data source factory and resource bundle.
 void refreshData()
          Refreshes the enterprise objects fetched to the client with to reflect the latest state known on the server.
 void runStartupDialogs(NSDictionary arguments)
          If requested with the "runApplicationURLDialog" argument, runs a URL connection dialog to ask for the server URL.
 
Methods inherited from class com.webobjects.eoapplication.EOApplication.ApplicationSupport
finishStartup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOClientApplicationSupport

public EOClientApplicationSupport(boolean remoteRequestArguments)
Creates a new EOClientApplicationSupport object.

Parameters:
remoteRequestArguments - true if additional arguments need to be requested from the server; false if all arguments have already been retrieved
Method Detail

main

public static void main(String[] argv)
Main entry point for three-tier Java Client applications.

Parameters:
argv - the application arguments

channelWithParameters

public EODistributionChannel channelWithParameters(NSDictionary parameters)
Creates a new distribution channel to be used with the application.

Parameters:
parameters - the connection parameters
Returns:
the new distribution channel

runStartupDialogs

public void runStartupDialogs(NSDictionary arguments)
If requested with the "runApplicationURLDialog" argument, runs a URL connection dialog to ask for the server URL.

Overrides:
runStartupDialogs in class EOApplication.ApplicationSupport
Parameters:
arguments - the arguments to the application known at this time

prepareClasses

public void prepareClasses(NSDictionary arguments)
Initializes some client-side principal classes and the distribution channel if that has not already happened.

Overrides:
prepareClasses in class EOApplication.ApplicationSupport
Parameters:
arguments - the arguments to the application known at this time

prepareGlobalObjects

public void prepareGlobalObjects(NSDictionary arguments)
Initializes all client-side principal classes and a client-side specific data source factory and resource bundle. Also creates a distributed object store and registers it as default parent object store for editing contexts.

Overrides:
prepareGlobalObjects in class EOApplication.ApplicationSupport
Parameters:
arguments - the arguments to the application known at this time

prepareApplication

public void prepareApplication(EOApplication application,
                               NSDictionary arguments)
Sets the application name and a client-side specific defaults manager.

Overrides:
prepareApplication in class EOApplication.ApplicationSupport
Parameters:
application - the EOApplication instance
arguments - the arguments to the application known at this time

refreshData

public void refreshData()
Refreshes the enterprise objects fetched to the client with to reflect the latest state known on the server.

Overrides:
refreshData in class EOApplication.ApplicationSupport

acknowledgeQuit

public void acknowledgeQuit()
Notifies the server that the client is about to quit so that it can terminate the session.

Overrides:
acknowledgeQuit in class EOApplication.ApplicationSupport

Last updated June 2008

Copyright © 2000-2008 Apple Inc.