ParameterInjector

Allows the application context to inject configuration parameter into context objects.

Namespace:
Inetdev.Parameters
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object
Implements:
Inetdev.Context.IRuntimeDependencyInjector

Constructors

ParameterInjector

Default constructor

Signature:
public Void ParameterInjector()

Properties

ParameterService

Parameter service implementation.

Signature:
public IParameterService ParameterService { get; set; }

Methods

GetValue

Gets the value of the property to inject.

Signature:
public Object GetValue(propertyName, args)
Returns

The value of the parameter.

Parameters
Name Type Summary
propertyName String Name of the property beeing injected.
args IDictionary<String, String> Arguments for this injector: name: The name of the configuration parameter. type: Type of the parameter, one of: Boolean, Integer, String.
Exceptions
Type Summary
MissingRequiredPropertyException Thrown when ParameterService was not set.
ArgumentNullOrEmptyException Thrown when args does not contains all the neccesary data.
ParameterDoesNotExistException Thrown when the requested parameter does not exists.
WrongParameterTypeException Thrown when the parameter is of different type of the requested type.