C# Class Castle.MonoRail.Framework.Services.AjaxProxyGenerator.PrototypeAjaxProxyGenerator

Provides a service which generates a JavaScript block, that can be used to call Ajax actions on the controller. This JavaScript will use the Prototype syntax.
Inheritance: AbstractAjaxProxyGenerator
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
GenerateJSProxy ( IRailsEngineContext context, string proxyName, string area, string controller ) : String

Generates an AJAX JavaScript proxy for a given controller.

PrototypeAjaxProxyGenerator ( ) : System

Initializes a new instance of the PrototypeAjaxProxyGenerator class.

Service ( IServiceProvider provider ) : void

Invoked by the framework in order to give a chance to obtain other services

Private Methods

Method Description
GetParameterName ( ParameterInfo paramInfo ) : string

Gets the name of the parameter.

GetPropertyValue ( object obj, string propName ) : object

Gets the property value.

GetSingleAttribute ( ICustomAttributeProvider obj, Type attributeType, bool inherit ) : object

Gets the single attribute.

ToCamelCase ( string value ) : string

Toes the camel case.

Method Details

GenerateJSProxy() public method

Generates an AJAX JavaScript proxy for a given controller.
public GenerateJSProxy ( IRailsEngineContext context, string proxyName, string area, string controller ) : String
context IRailsEngineContext The context of the current request
proxyName string Name of the javascript proxy object
area string area which the controller belongs to
controller string Controller which will be target of the proxy
return String

PrototypeAjaxProxyGenerator() public method

Initializes a new instance of the PrototypeAjaxProxyGenerator class.
public PrototypeAjaxProxyGenerator ( ) : System
return System

Service() public method

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
return void