Show / Hide Table of Contents

# Class JavaObject

Represents a Java object wrapper.

JavaObject can be converted to Ignite filters and predicates which can be used on non-.NET Ignite nodes.

Workflow is as follows: Instantiate specified Java class; Set property values; If the resulting object implements PlatformJavaObjectFactory, call create() method and use the result, otherwise use the original object.

##### Inheritance

System.Object
JavaObject

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Interop

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class JavaObject

### Constructors

#### JavaObject(String)

Initializes a new instance of the JavaObject class.

##### Declaration

    public JavaObject(string className)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | className | Name of the Java class.

#### JavaObject(String, IDictionary<String, Object>)

Initializes a new instance of the JavaObject class.

##### Declaration

    public JavaObject(string className, IDictionary<string, object> properties)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | className | Name of the Java class.
System.Collections.Generic.IDictionary<System.String, System.Object> | properties | The properties to set on the Java object.

### Properties

#### ClassName

Gets the Java class name.

##### Declaration

    public string ClassName { get; }

##### Property Value

Type | Description
--- | ---
System.String |

#### Properties

Gets the properties to be set on the Java object.

##### Declaration

    public IDictionary<string, object> Properties { get; }

##### Property Value

Type | Description
--- | ---
System.Collections.Generic.IDictionary<System.String, System.Object> |

### Extension Methods

ContinuousQueryExtensions.ToCacheEntryEventFilter<TK, TV>(JavaObject)