DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Serialization.ObjectSerializerProvider Class Referenceabstract
Inheritance diagram for Deveel.Data.Serialization.ObjectSerializerProvider:
Deveel.Data.Serialization.IObjectSerializerResolver Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializerResolver Deveel.Data.Sql.Query.QueryPlanSerializers.QueryPlanNodeSerializerResolver

Public Member Functions

 ObjectSerializerProvider ()
 
IObjectSerializer ResolveSerializer (Type objectType)
 
void Dispose ()
 

Protected Member Functions

abstract void Init ()
 
void Register< TObject, TSerializer > ()
 
virtual void Dispose (bool disposing)
 

Private Member Functions

 ~ObjectSerializerProvider ()
 
void CallInit ()
 

Private Attributes

Container container
 

Detailed Description

Definition at line 22 of file ObjectSerializerProvider.cs.

Constructor & Destructor Documentation

Deveel.Data.Serialization.ObjectSerializerProvider.ObjectSerializerProvider ( )
inline
Deveel.Data.Serialization.ObjectSerializerProvider.~ObjectSerializerProvider ( )
inlineprivate

Definition at line 30 of file ObjectSerializerProvider.cs.

Member Function Documentation

void Deveel.Data.Serialization.ObjectSerializerProvider.CallInit ( )
inlineprivate

Definition at line 34 of file ObjectSerializerProvider.cs.

34  {
35  Init();
36  }
void Deveel.Data.Serialization.ObjectSerializerProvider.Dispose ( )
inline

Definition at line 54 of file ObjectSerializerProvider.cs.

54  {
55  Dispose(true);
56  GC.SuppressFinalize(this);
57  }
virtual void Deveel.Data.Serialization.ObjectSerializerProvider.Dispose ( bool  disposing)
inlineprotectedvirtual

Definition at line 59 of file ObjectSerializerProvider.cs.

59  {
60  if (disposing) {
61  if (container != null)
62  container.Dispose();
63  }
64 
65  container = null;
66  }
abstract void Deveel.Data.Serialization.ObjectSerializerProvider.Init ( )
protectedpure virtual
void Deveel.Data.Serialization.ObjectSerializerProvider.Register< TObject, TSerializer > ( )
inlineprotected
Type Constraints
TSerializer :class 
TSerializer :IObjectSerializer 
TSerializer :new() 

Definition at line 40 of file ObjectSerializerProvider.cs.

41  : class, IObjectSerializer, new() {
42  var typeName = typeof (TObject).FullName;
43  container.Register<IObjectSerializer, TSerializer>(serviceKey:typeName);
44  }
IObjectSerializer Deveel.Data.Serialization.ObjectSerializerProvider.ResolveSerializer ( Type  objectType)
inline

Implements Deveel.Data.Serialization.IObjectSerializerResolver.

Definition at line 46 of file ObjectSerializerProvider.cs.

46  {
47  if (objectType == null)
48  throw new ArgumentNullException("objectType");
49 
50  var typeName = objectType.FullName;
51  return container.Resolve<IObjectSerializer>(typeName, IfUnresolved.ReturnDefault);
52  }

Member Data Documentation

Container Deveel.Data.Serialization.ObjectSerializerProvider.container
private

Definition at line 23 of file ObjectSerializerProvider.cs.


The documentation for this class was generated from the following file: