Show / Hide Table of Contents

Class ObjectFactoryFactory

Factory class for producing IObjectFactory instances from Configuration Graphs.

Inheritance
object
ObjectFactoryFactory
Implements
IObjectFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class ObjectFactoryFactory : IObjectFactory
Remarks

This essentially reflexive implementation allows for defining additional IObjectFactory instances that can load custom/user defined types based on user definable Configuration. If your Configuration Graphs contain custom object factory definitions then you should call ConfigurationLoader.AutoConfigureObjectFactories() before attempting to load any Configuration.

Methods

| Edit this page View Source

CanLoadObject(Type)

Gets whether this Factory can load objects of the given Type.

Declaration
public bool CanLoadObject(Type t)
Parameters
Type Name Description
Type t

Type.

Returns
Type Description
bool
| Edit this page View Source

TryLoadObject(IGraph, INode, Type, out object)

Tries to load an Object Factory based on information from the Configuration Graph.

Declaration
public bool TryLoadObject(IGraph g, INode objNode, Type targetType, out object obj)
Parameters
Type Name Description
IGraph g

Configuration Graph.

INode objNode

Object Node.

Type targetType

Target Type.

object obj

Output Object.

Returns
Type Description
bool

Implements

IObjectFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • CanLoadObject(Type)
    • TryLoadObject(IGraph, INode, Type, out object)
  • Implements
  • Extension Methods
Back to top Generated by DocFX