ilog.tgo
Class IltSystem

java.lang.Object
  extended by ilog.cpl.IlpSystem
      extended by ilog.tgo.IltSystem

public class IltSystem
extends IlpSystem

This class is used to initialize an ILOG JTGO application or applet. It inherits almost all its functionality from IlpSystem. The following differences exist:

Since:
JTGO 3.0

Field Summary
static boolean StyleCompatibilityMode
          Indicates that compatibility with previous style customization shall be used.
 
Constructor Summary
protected IltSystem()
          Default constructor
 
Method Summary
static void BeanInit(Object theCreatedBean, boolean verbose)
          This method should be called in the constructor of any JavaBean that uses ILOG JTGO.
static void Init()
          Initializes a JTGO process and creates a default context using a deployment descriptor.
static void Init(Applet applet)
          Initializes a CPL applet and creates a default context using a default deployment descriptor.
static void Init(Applet applet, String deploymentDescriptorName)
          Initializes a CPL applet and creates a default context using a deployment descriptor specified by a relative file name.
static void Init(IlpContext defaultContext)
          Initializes the system based on a service context.
static void Init(String deploymentDescriptorName)
          Initializes an ILOG JTGO process and creates a default context using a deployment descriptor specified by a file name.
static void Init(URL documentBase, String deploymentDescriptorName)
          Initializes the system using a deployment descriptor specified by a relative URL, relative to a given base URL.
static void Init(URL deploymentDescriptorURL, URL defaultDocumentBase)
          Initializes the system using a deployment descriptor specified by an URL.
 
Methods inherited from class ilog.cpl.IlpSystem
CreateDefaultContext, DontSetLocale, GetBuildNumber, GetDefaultContext, GetDefaultFont, GetHome, GetHostName, GetMajorVersion, GetMinorVersion, GetPatchLevel, GetReleaseDate, GetSubMinorVersion, GetVersion, GetVersionString, IsApplet, IsDontSetLocale, IsInitialized, IsInitializing, SetDefaultContext, SetDefaultFont, Shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

StyleCompatibilityMode

public static boolean StyleCompatibilityMode
Indicates that compatibility with previous style customization shall be used.

This flag is used for the following scenarios:

Since:
JViews 7.5
Constructor Detail

IltSystem

protected IltSystem()
Default constructor

Method Detail

BeanInit

public static final void BeanInit(Object theCreatedBean,
                                  boolean verbose)
This method should be called in the constructor of any JavaBean that uses ILOG JTGO. This method should be the first instruction after the call to any constructor of the superclass.


Init

public static void Init()
Initializes a JTGO process and creates a default context using a deployment descriptor.

The system looks for the deployment descriptor as follows:

The file is looked for:

To use a custom deployment descriptor you could also use one of the versions of this method that takes a deployment descriptor name as a parameter.

If no custom deployment descriptor is found, a default one of type IlpDefaultContext is created.

This method should not be used to initialize an applet. Use the versions of Init that take an Applet parameter or an absolute URL instead.

If this method is called more than once the initialization is performed only once.


Init

public static void Init(String deploymentDescriptorName)
                 throws FileNotFoundException,
                        IOException,
                        IlpDeploymentParsingException
Initializes an ILOG JTGO process and creates a default context using a deployment descriptor specified by a file name.

The deployment descriptor name provided may be an absolute path, or relative to the current directory for the application. Under Windows, the drive letter in an absolute path is considered as the type of the file; to avoid confusion, you must specify "file:" at the very beginning of the path.

This method should not be used to initialize an applet. Use the versions of Init that take an Applet parameter or an absolute URL instead.

Parameters:
deploymentDescriptorName - absolute or relative file name
Throws:
FileNotFoundException
IOException
IlpDeploymentParsingException

Init

public static void Init(URL documentBase,
                        String deploymentDescriptorName)
                 throws FileNotFoundException,
                        IOException,
                        IlpDeploymentParsingException
Initializes the system using a deployment descriptor specified by a relative URL, relative to a given base URL.

Throws:
FileNotFoundException
IOException
IlpDeploymentParsingException
Internal method or field: do not use!

Init

public static void Init(URL deploymentDescriptorURL,
                        URL defaultDocumentBase)
                 throws FileNotFoundException,
                        IOException,
                        IlpDeploymentParsingException
Initializes the system using a deployment descriptor specified by an URL.

This method may be used to initialize either an application or an applet.

Parameters:
deploymentDescriptorURL - URL of deployment descriptor
defaultDocumentBase - Default document base URL
Throws:
FileNotFoundException
IOException
IlpDeploymentParsingException
Internal method or field: do not use!

Init

public static void Init(Applet applet)
Initializes a CPL applet and creates a default context using a default deployment descriptor.

The document base of the applet is used as the document base for the default URL access service created.

The default deployment descriptor is obtained from the CPL jar. To use a custom deployment descriptor, use one of the versions of this method that takes a deployment descriptor name as a parameter.


Init

public static void Init(Applet applet,
                        String deploymentDescriptorName)
                 throws FileNotFoundException,
                        IOException,
                        IlpDeploymentParsingException
Initializes a CPL applet and creates a default context using a deployment descriptor specified by a relative file name. Under Windows, the drive letter in a path is considered as the type of the file; to avoid confusion, you must specify "file:" at the very beginning of the path.

The document base of the applet is used as the document base for the default URL access service.

Throws:
FileNotFoundException
IOException
IlpDeploymentParsingException

Init

public static void Init(IlpContext defaultContext)
Initializes the system based on a service context.

The user should ensure that the context is properly configured for subsequent use.

Parameters:
defaultContext - The default service context used in the application


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.