Click or drag to resize

Factory Class

Provides methods for creating and destroying object instances
Inheritance Hierarchy
SystemObject
  Cauldron.ActivatorFactory

Namespace:  Cauldron.Activator
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class Factory

The Factory type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberCanRaiseExceptions
Gets or sets a value that indicates if the Factory is allowed to raise an exception or not.
Public propertyStatic memberFactoryTypes
Gets a collection of IFactoryTypeInfo that was found on the entrance assembly and its referencing assemblies.
Public propertyStatic memberRegisteredTypes
Gets a collection types that is known to the Factory
Public propertyStatic memberResolvers
Gets a collection of resolvers. The resolvers are only in effect if there are multiple implementations with the same contract name.
Top
Methods
  NameDescription
Public methodStatic member<>__Create(String, Type)
Public methodStatic member<>__Create(Type, Type)
Public methodStatic member<>__Create(String, Object, Type)
Public methodStatic member<>__Create(Type, Object, Type)
Public methodStatic member<>__CreateT(Type)
Public methodStatic member<>__CreateT(Object, Type)
Public methodStatic memberAddType(String, FactoryCreationPolicy, Type, FuncObject, Object)
Adds a new Type to list of custom types.
Public methodStatic memberAddType(Type, FactoryCreationPolicy, Type, FuncObject, Object)
Adds a new Type to list of custom types.
Public methodStatic memberAddTypes
Adds a collection of IFactoryTypeInfo to the list fo custom types.
Public methodStatic memberCreateFirst(String)
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateFirst(Type)
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateFirst(String, Object)
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateFirst(Type, Object)
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateFirstT
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateFirstT(Object)
Creates an instance of the specified type depending on the ComponentAttribute. If multiple implementations are available, the Factory will prefer the implementation with the highest priority.
Public methodStatic memberCreateMany(String)
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateMany(Type)
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateMany(String, Object)
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateMany(Type, Object)
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateManyT
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateManyT(Object)
Creates instances of the specified type depending on the ComponentAttribute
Public methodStatic memberCreateManyOrdered(String)
Creates instances of the specified type depending on the ComponentAttribute. The returned values are ordered by the defined priority.
Public methodStatic memberCreateManyOrdered(Type)
Creates instances of the specified type depending on the ComponentAttribute The returned values are ordered by the defined priority.
Public methodStatic memberCreateManyOrdered(String, Object)
Creates instances of the specified type depending on the ComponentAttribute. The returned values are ordered by the defined priority.
Public methodStatic memberCreateManyOrdered(Type, Object)
Creates instances of the specified type depending on the ComponentAttribute The returned values are ordered by the defined priority.
Public methodStatic memberCreateManyOrderedT
Creates instances of the specified type depending on the ComponentAttribute The returned values are ordered by the defined priority.
Public methodStatic memberCreateManyOrderedT(Object)
Creates instances of the specified type depending on the ComponentAttribute The returned values are ordered by the defined priority.
Public methodStatic memberDestroy
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Not threadsafe.

Public methodStatic memberDestroy(String)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Not threadsafe.

Public methodStatic memberDestroy(Type)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Not threadsafe.

Public methodStatic memberDestroyT
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Not threadsafe.

Public methodStatic memberHasContract(String)
Determines whether a contract exist
Public methodStatic memberHasContract(Type)
Determines whether a contract exist
Public methodStatic memberHasContractT
Determines whether a contract exist
Public methodStatic memberRemoveType(String, Type)
Removes a Type from the list of manually added types.

Not threadsafe.

Public methodStatic memberRemoveType(Type, Type)
Removes a Type from the list of manually added types.

Not threadsafe.

Top
Events
  NameDescription
Public eventStatic memberObjectCreated
Occures if an object was created. This will only be invoked if the created object has set its InvokeOnObjectCreationEvent to true.
Public eventStatic memberRebuilt
Occures after the Factory was initialized or reloaded. A Factory reload always occures if LoadedAssemblyChanged is invoked.
Top
See Also