C# Class Spring.Web.Support.SupportsWebDependencyInjectionTypeBuilder

This TypeBuilder dynamically implements the ISupportsWebDependencyInjection contract on a given type.
Inheritance: Spring.Proxy.InheritanceProxyTypeBuilder
Mostrar archivo Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
BuildProxyType ( ) : Type

Creates a proxy that inherits the proxied object's class.

IsSpringAwareControlProxy ( Type type ) : bool

Determines if the specified type is one of those generated by this builder.

SupportsWebDependencyInjectionTypeBuilder ( Type targetType, MethodInfo methodsToIntercept, MethodInfo staticCallbackMethod ) : System

Creates a new TypeBuilder instance.

Private Methods

Method Description
DeclareApplicationContextInstanceField ( TypeBuilder builder ) : FieldBuilder

Declares field that holds the ISupportsWebDependencyInjection.DefaultApplicationContext.

ImplementIDependencyInjectionAware ( TypeBuilder typeBuilder, Type targetType, FieldInfo appContextField ) : void

Actually implements the ISupportsWebDependencyInjection interface.

Method Details

BuildProxyType() public method

Creates a proxy that inherits the proxied object's class.
public BuildProxyType ( ) : Type
return System.Type

IsSpringAwareControlProxy() public static method

Determines if the specified type is one of those generated by this builder.
public static IsSpringAwareControlProxy ( Type type ) : bool
type System.Type The type to check.
return bool

SupportsWebDependencyInjectionTypeBuilder() public method

Creates a new TypeBuilder instance.
public SupportsWebDependencyInjectionTypeBuilder ( Type targetType, MethodInfo methodsToIntercept, MethodInfo staticCallbackMethod ) : System
targetType Type The base type the proxy shall be derived from
methodsToIntercept MethodInfo The methods to be injected with a call to staticCallbackMethod
staticCallbackMethod MethodInfo The static callback method to be injected into methodsToIntercept
return System