Package com.zeroc.Ice

Class InitializationData

java.lang.Object
com.zeroc.Ice.InitializationData
All Implemented Interfaces:
Cloneable

public final class InitializationData extends Object implements Cloneable
Represents a set of options that you can specify when initializing a communicator.
See Also:
  • Field Details

    • properties

      public Properties properties
      The properties for the communicator. When non-null, this field corresponds to the object returned by Communicator.getProperties().
    • logger

      public Logger logger
      The logger for the communicator.
    • observer

      public CommunicatorObserver observer
      The communicator observer used by the Ice runtime.
    • threadStart

      public Runnable threadStart
      threadStart is called whenever the communicator starts a new thread.
    • threadStop

      public Runnable threadStop
      threadStop is called whenever a thread created by the communicator is about to be destroyed.
    • classLoader

      public ClassLoader classLoader
      The custom class loader for the communicator. Applications can supply a custom class loader that the Ice runtime will use when unmarshaling class instances and user exceptions, and when loading plug-ins.

      If a custom sliceLoader is provided, then that will be used to unmarshal class instances and user exceptions, instead of this class loader.

      If an application does not supply a class loader (or if the application-supplied class loader fails to locate a class), the Ice runtime attempts to load the class using class loaders in the following order:

      • the current thread's class loader
      • the default class loader (that is, by calling Class.forName)
      • the system class loader
    • executor

      public BiConsumer<Runnable,Connection> executor
      You can control which thread receives operation dispatches and async invocation callbacks by supplying an executor. For example, you can use this execution facility to ensure that all dispatches and invocation callbacks are executed in a GUI event loop thread so that it is safe to invoke directly on GUI objects.

      The executor is responsible for running the dispatch or async invocation callback on its favorite thread. It must execute the provided Runnable parameter. The Connection parameter represents the connection associated with this call.

    • batchRequestInterceptor

      public BatchRequestInterceptor batchRequestInterceptor
      The batch request interceptor.
    • clientSSLEngineFactory

      public SSLEngineFactory clientSSLEngineFactory
      The SSL engine factory used to configure the client-side ssl transport. If non-null, all the IceSSL configuration properties are ignored, and any SSL configuration must be done through the SSLEngineFactory.
    • pluginFactories

      public List<PluginFactory> pluginFactories
      A list of plug-in factories. The corresponding plug-ins are created during communicator initialization, in order, before all other plug-ins.
    • sliceLoader

      public SliceLoader sliceLoader
      The Slice loader, used to create instances of Slice classes and user exceptions. Applications can supply a custom slice loader that the Ice runtime will use during unmarshaling.
  • Constructor Details

    • InitializationData

      public InitializationData()
      Creates an InitializationData with all fields set to null or the empty list.
  • Method Details

    • clone

      public InitializationData clone()
      Creates and returns a copy of this InitializationData.
      Overrides:
      clone in class Object
      Returns:
      a copy of this object