| ObjectFactoryT Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: CMS.Core
 Syntax
SyntaxThe ObjectFactoryT type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | ObjectFactoryT | 
 Properties
Properties| Name | Description | |
|---|---|---|
|   | CanReplaceCurrent | 
            If true, the default object factory can be replaced by other factory
             | 
|  | Constructor | 
            Constructor used for dependency injection
             | 
|  | CreatedType | 
            Returns the type created by this factory
             | 
|   | CurrentFactory | 
            Current factory to create objects.
             | 
|  | Initializer | 
            Object initialization function
             | 
|   | IsInitialized | 
            Returns true if the default factory is initialized
             | 
|  | Singleton | 
            Singleton instance of the created object type
             | 
|  | UseCompiledLambda | 
            If true, the compiled lambda expression is used to create new objects. Set to true if the factory will be creating a lot of objects
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CanCreateObject | 
            Returns true if the factory is able to create the object based on the given parameter
             | 
|  | CreateActivator | 
            Creates an object activator for the created type
             | 
|  | CreateInstance | 
            Creates a new instance of the object
             | 
|  | CreateNewObject | 
            Creates and returns a new object
             | 
|  | CreateNewTypedObject | 
            Creates and returns a new object
             | 
|   | New | 
            Creates a new object of the given type
             | 
|   | SetObjectTypeTo(Type, Boolean, Boolean) | 
            Sets the object type created by the factory to the given type.
             | 
|   | SetObjectTypeToNewType(Boolean, Boolean) | 
            Sets the object type created by the factory to the given type.
             | 
|   | StaticSingleton | 
            Provides a static singleton instance of the object implementing this interface
             | 
|   | StaticSingletonTParent | 
            Returns static singleton for the given object type
             | 
 See Also
See Also Inheritance Hierarchy
Inheritance Hierarchy