Click or drag to resize

Configuration Class

An instance of Configuration allows the application to specify properties to be used when compiling and when getting a runtime. The Configuration is meant only as an initialization-time object. The format of an Esper XML configuration file is defined in esper-configuration-(version).xsd.
Inheritance Hierarchy
SystemObject
  com.espertech.esper.common.client.configurationConfiguration

Namespace:  com.espertech.esper.common.client.configuration
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
[SerializableAttribute]
public class Configuration

The Configuration type exposes the following members.

Constructors
  NameDescription
Public methodConfiguration
Constructs an empty configuration. The auto import values are set to defaults.
Public methodConfiguration(IContainer)
Constructs an empty configuration. The auto import values are set to defaults.
Top
Properties
  NameDescription
Public propertyCommon
Returns the common section of the configuration.

The common section is for use by both the compiler and the runtime.

Public propertyCompiler
Returns the compiler section of the configuration.

The compiler section is for use by the compiler. The runtime ignores this part of the configuration object.

Public propertyContainer
Gets or sets the container.
Public propertyResourceManager
Gets the resource manager.
Public propertyRuntime
Returns the runtime section of the configuration.

The runtime section is for use by the runtime. The compiler ignores this part of the configuration object.

Top
Methods
  NameDescription
Public methodConfigure
Use the configuration specified in an application resource named esper.cfg.xml.
Public methodConfigure(FileInfo)
Use the configuration specified in the given application file. The format of the file is defined in esper-configuration-(version).xsd.
Public methodConfigure(String)
Use the configuration specified in the given application resource. The format of the resource is defined in esper-configuration-(version).xsd.

The resource is found via getConfigurationInputStream(resource). That method can be overridden to implement an arbitrary lookup strategy.

See getResourceAsStream for information on how the resource name is resolved.

Public methodConfigure(Uri)
Use the configuration specified by the given URL. The format of the document obtained from the URL is defined in esper-configuration-(version).xsd.
Public methodConfigure(XmlDocument)
Use the mappings and properties specified in the given XML document. The format of the file is defined in esper-configuration-(version).xsd.
Protected methodReset
Reset to an empty configuration.
Top
Fields
  NameDescription
Protected fieldStatic memberESPER_DEFAULT_CONFIG
Default name of the configuration file.
Top
See Also