C# Class Spring.Objects.Factory.Config.DependencyDescriptor

Descriptor for a specific dependency that is about to be injected. Wraps a constructor parameter, a method parameter or a field, allowing unified access to their metadata.
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
DependencyDescriptor ( FieldInfo field, bool required ) : System

Create a new descriptor for a field. Considers the dependency as 'eager'. field to wrap whether the dependency is required

DependencyDescriptor ( FieldInfo field, bool required, bool eager ) : System

Create a new descriptor for a field. field to wrap whether the dependency is required whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching

DependencyDescriptor ( Spring.Core.MethodParameter methodParameter, bool required ) : System

Initializes a new instance of the DependencyDescriptor class for a method or constructor parameter. Considers the dependency as 'eager'

DependencyDescriptor ( Spring.Core.MethodParameter methodParameter, bool required, bool eager ) : System

Initializes a new instance of the DependencyDescriptor class for a method or a constructor parameter.

DependencyDescriptor ( PropertyInfo property, bool required ) : System

Create a new descriptor for a property. Considers the dependency as 'eager'. property to wrap required whether the dependency is required

DependencyDescriptor ( PropertyInfo property, bool required, bool eager ) : System

Create a new descriptor for a property. property to wrap whether the dependency is required whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching

Method Details

DependencyDescriptor() public method

Create a new descriptor for a field. Considers the dependency as 'eager'. field to wrap whether the dependency is required
public DependencyDescriptor ( FieldInfo field, bool required ) : System
field System.Reflection.FieldInfo
required bool
return System

DependencyDescriptor() public method

Create a new descriptor for a field. field to wrap whether the dependency is required whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching
public DependencyDescriptor ( FieldInfo field, bool required, bool eager ) : System
field System.Reflection.FieldInfo
required bool
eager bool
return System

DependencyDescriptor() public method

Initializes a new instance of the DependencyDescriptor class for a method or constructor parameter. Considers the dependency as 'eager'
public DependencyDescriptor ( Spring.Core.MethodParameter methodParameter, bool required ) : System
methodParameter Spring.Core.MethodParameter The MethodParameter to wrap.
required bool if set to true if the dependency is required.
return System

DependencyDescriptor() public method

Initializes a new instance of the DependencyDescriptor class for a method or a constructor parameter.
public DependencyDescriptor ( Spring.Core.MethodParameter methodParameter, bool required, bool eager ) : System
methodParameter Spring.Core.MethodParameter The MethodParameter to wrap.
required bool if set to true the dependency is required.
eager bool if set to true the dependency is 'eager' in the sense of /// eagerly resolving potential target objects for type matching.
return System

DependencyDescriptor() public method

Create a new descriptor for a property. Considers the dependency as 'eager'. property to wrap required whether the dependency is required
public DependencyDescriptor ( PropertyInfo property, bool required ) : System
property System.Reflection.PropertyInfo
required bool
return System

DependencyDescriptor() public method

Create a new descriptor for a property. property to wrap whether the dependency is required whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching
public DependencyDescriptor ( PropertyInfo property, bool required, bool eager ) : System
property System.Reflection.PropertyInfo
required bool
eager bool
return System