C# Class Castle.MonoRail.Framework.Services.DefaultControllerDescriptorProvider

Constructs and caches all collected information about a Controller and its actions. ControllerMetaDescriptor
Inheritance: IControllerDescriptorProvider
Mostra file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
BuildDescriptor ( Controller controller ) : ControllerMetaDescriptor

Constructs and populates a ControllerMetaDescriptor.

This implementation is also responsible for caching constructed meta descriptors.

BuildDescriptor ( Type controllerType ) : ControllerMetaDescriptor

Constructs and populates a ControllerMetaDescriptor.

This implementation is also responsible for caching constructed meta descriptors.

Service ( IServiceProvider serviceProvider ) : void

Services the specified service provider.

Private Methods

Method Description
CollectAccessibleThrough ( ActionMetaDescriptor actionDescriptor, MethodInfo method ) : void

Collects the accessible through.

CollectActionAttributes ( MethodInfo method, ControllerMetaDescriptor descriptor ) : void

Collects the action attributes.

CollectActionLevelAttributes ( ControllerMetaDescriptor descriptor ) : void

Collects the action level attributes.

CollectActions ( Type controllerType, ControllerMetaDescriptor desc ) : void

Collects the actions.

CollectCacheConfigures ( ActionMetaDescriptor descriptor, MemberInfo memberInfo ) : void

Collects the cache configures.

CollectClassLevelAttributes ( Type controllerType, ControllerMetaDescriptor descriptor ) : void

Collects the class level attributes.

CollectDefaultAction ( ControllerMetaDescriptor descriptor, Type controllerType ) : void

Collects the default action.

CollectDynamicAction ( ControllerMetaDescriptor descriptor, Type controllerType ) : void

Collects the dynamic action.

CollectFilters ( ControllerMetaDescriptor descriptor, Type controllerType ) : void

Collects the filters.

CollectHelpers ( ControllerMetaDescriptor descriptor, Type controllerType ) : void

Collects the helpers.

CollectLayout ( BaseMetaDescriptor descriptor, MemberInfo memberInfo ) : void

Collects the layout.

CollectRescues ( BaseMetaDescriptor descriptor, MethodInfo memberInfo ) : void

Collects the rescues.

CollectRescues ( BaseMetaDescriptor descriptor, Type type ) : void

Collects the rescues.

CollectResources ( BaseMetaDescriptor desc, MemberInfo memberInfo ) : void

Collects the resources.

CollectScaffolding ( ControllerMetaDescriptor descriptor, Type controllerType ) : void

Collects the scaffolding.

CollectSkipFilter ( ActionMetaDescriptor actionDescriptor, MethodInfo method ) : void

Collects the skip filter.

CollectSkipRescue ( ActionMetaDescriptor actionDescriptor, MethodInfo method ) : void

Collects the skip rescue.

CollectTransformFilter ( ActionMetaDescriptor actionDescriptor, MethodInfo method ) : void

Collects the transform filter.

GetRealControllerType ( Type controllerType ) : Type

Gets the real controller type, instead of the proxy type.

Workaround for DYNPROXY-14 bug. See: http://support.castleproject.org/browse/DYNPROXY-14

InternalBuildDescriptor ( Type controllerType ) : ControllerMetaDescriptor

Builds the ControllerMetaDescriptor for the specified controller type

Method Details

BuildDescriptor() public method

Constructs and populates a ControllerMetaDescriptor.
This implementation is also responsible for caching constructed meta descriptors.
public BuildDescriptor ( Controller controller ) : ControllerMetaDescriptor
controller Controller
return Castle.MonoRail.Framework.Internal.ControllerMetaDescriptor

BuildDescriptor() public method

Constructs and populates a ControllerMetaDescriptor.
This implementation is also responsible for caching constructed meta descriptors.
public BuildDescriptor ( Type controllerType ) : ControllerMetaDescriptor
controllerType System.Type
return Castle.MonoRail.Framework.Internal.ControllerMetaDescriptor

Service() public method

Services the specified service provider.
public Service ( IServiceProvider serviceProvider ) : void
serviceProvider IServiceProvider The service provider.
return void