Show / Hide Table of Contents

Class PropertyInjectors

This is a collection of ProjectInjectors assigned to this scope.

Inheritance
object
PropertyInjectors
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PropertyInjectors : DeputyBase
Syntax (vb)
Public Class PropertyInjectors Inherits DeputyBase
Remarks

It is keyed by constructUniqueId. There can be only one ProjectInjector for a constructUniqueId.

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK;

             var propertyInjectors = PropertyInjectors.Of(this);

Synopsis

Properties

Scope

The scope attached to Injectors.

Methods

Add(params IPropertyInjector[])

Add a list of IPropertyInjectors to this collection of PropertyInjectors.

For(string)

Get the PropertyInjector that is registered to the Construct's uniqueId.

HasPropertyInjectors(object)

Return whether the given object has a PropertyInjectors property.

Of(IConstruct)

Returns the PropertyInjectors object associated with a construct scope.

SupportedClasses()

This returns a list of the Constructs that are supporting by this PropertyInjectors.

Properties

Scope

The scope attached to Injectors.

public virtual IConstruct Scope { get; }
Property Value

IConstruct

Remarks

It is keyed by constructUniqueId. There can be only one ProjectInjector for a constructUniqueId.

ExampleMetadata: fixture=_generated

Methods

Add(params IPropertyInjector[])

Add a list of IPropertyInjectors to this collection of PropertyInjectors.

public virtual void Add(params IPropertyInjector[] propsInjectors)
Parameters
propsInjectors IPropertyInjector[]
  • a list of IPropertyInjector.
Remarks

It is keyed by constructUniqueId. There can be only one ProjectInjector for a constructUniqueId.

ExampleMetadata: fixture=_generated

For(string)

Get the PropertyInjector that is registered to the Construct's uniqueId.

public virtual IPropertyInjector? For(string uniqueId)
Parameters
uniqueId string
  • the construct uniqueId.
Returns

IPropertyInjector

  • the IPropertyInjector for that construct uniqueId
Remarks

It is keyed by constructUniqueId. There can be only one ProjectInjector for a constructUniqueId.

ExampleMetadata: fixture=_generated

HasPropertyInjectors(object)

Return whether the given object has a PropertyInjectors property.

public static bool HasPropertyInjectors(object x)
Parameters
x object
Returns

bool

Remarks

We do attribute detection since we can't reliably use 'instanceof'.

Of(IConstruct)

Returns the PropertyInjectors object associated with a construct scope.

public static PropertyInjectors Of(IConstruct scope)
Parameters
scope IConstruct

The scope for which these PropertyInjectors will apply.

Returns

PropertyInjectors

Remarks

If PropertyInjectors object doesn't exist on this scope, then it creates one and attaches it to scope.

SupportedClasses()

This returns a list of the Constructs that are supporting by this PropertyInjectors.

public virtual string[] SupportedClasses()
Returns

string[]

a list of string showing the supported Constructs.

Remarks

It is keyed by constructUniqueId. There can be only one ProjectInjector for a constructUniqueId.

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX