Method | Description | |
---|---|---|
ClearCache ( ) : void |
Clears the cache of all constructors.
|
|
CreateInstance ( |
Creates an instance of the specified type using dependency injection.
|
|
CreateInstanceWithParameters ( |
Creates an instance of the specified type using the specified parameters as injection values.
|
|
CreateInstanceWithParametersAndAutoCompletion ( |
Creates an instance of the specified type using the specified parameters as injection values.
|
|
CreateInstanceWithParametersAndAutoCompletionWithTag ( |
Creates an instance of the specified type using the specified parameters as injection values.
|
|
CreateInstanceWithParametersWithTag ( |
Creates an instance of the specified type using the specified parameters as injection values.
|
|
CreateInstanceWithTag ( |
Creates an instance of the specified type using dependency injection.
|
|
TypeFactory ( IServiceLocator serviceLocator ) : System |
Initializes a new instance of the TypeFactory class.
|
Method | Description | |
---|---|---|
CanConstructorBeUsed ( |
Determines whether the specified constructor can be used for dependency injection.
|
|
CloseCurrentTypeIfRequired ( Catel.IoC.TypeRequestInfo typeRequestInfoForTypeJustConstructed ) : void |
Marks the specified type as not being created. If this was the only type being constructed, the type request path will be closed.
|
|
CompleteTypeRequestPathIfRequired ( Catel.IoC.TypeRequestInfo typeRequestInfoForTypeJustConstructed ) : void |
Completes the type request path by checking if the currently created type is the same as the first type meaning that the type is successfully created and the current type request path can be set to
|
|
CountSpecialObjects ( |
Gets the special objects count for the specific constructor.
|
|
CreateInstanceWithSpecifiedParameters ( |
Creates an instance of the specified type using the specified parameters as injection values.
|
|
GetConstructorCache ( bool autoCompleteDependencies ) : ConstructorInfo>.Dictionary |
Gets the constructor cache depending on whether the dependencies should be auto completed.
|
|
GetTypeMetaData ( |
Gets the constructors metadata.
|
|
InitializeAfterConstruction ( object obj ) : void |
Initializes the created object after its construction.
|
|
IsValidParameterValue ( |
Determines whether the specified parameter value can be used for the specified parameter type.
|
|
OnAssemblyLoaded ( object sender, AssemblyLoadedEventArgs e ) : void |
Called when the TypeCache.AssemblyLoaded event occurs.
|
|
OnServiceLocatorTypeRegistered ( object sender, Catel.IoC.TypeRegisteredEventArgs eventArgs ) : void |
Called when the IServiceLocator.TypeRegistered event occurs.
|
|
TryCreateToConstruct ( |
Tries to create the service with the specified constructor using the specified parameters. Note that this method does not require an implementation of TypeRequestPath because this already has the parameter values and thus cannot lead to invalid circular dependencies. |
|
TypeFactory ( ) : System |
public CreateInstance ( |
||
typeToConstruct | The type to construct. | |
return | object |
public CreateInstanceWithParameters ( |
||
typeToConstruct | The type to construct. | |
return | object |
public CreateInstanceWithParametersAndAutoCompletion ( |
||
typeToConstruct | The type to construct. | |
return | object |
public CreateInstanceWithParametersAndAutoCompletionWithTag ( |
||
typeToConstruct | The type to construct. | |
tag | object | The preferred tag when resolving dependencies. |
return | object |
public CreateInstanceWithParametersWithTag ( |
||
typeToConstruct | The type to construct. | |
tag | object | The preferred tag when resolving dependencies. |
return | object |
public CreateInstanceWithTag ( |
||
typeToConstruct | The type to construct. | |
tag | object | The preferred tag when resolving dependencies. |
return | object |
public TypeFactory ( IServiceLocator serviceLocator ) : System | ||
serviceLocator | IServiceLocator | The service locator. |
return | System |