1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.MonoRail
.Framework
.Descriptors
20 /// Represents the information about a Helper class
21 /// associated with a <see cref="IController"/>
23 public class HelperDescriptor
25 private readonly String name
;
26 private readonly Type helperType
;
29 /// Initializes a new instance of the <see cref="HelperDescriptor"/> class.
31 /// <param name="helperType">Type of the helper.</param>
32 public HelperDescriptor(Type helperType
)
34 this.helperType
= helperType
;
38 /// Initializes a new instance of the <see cref="HelperDescriptor"/> class.
40 /// <param name="helperType">Type of the helper.</param>
41 /// <param name="name">A custom name to use to access the helper from the view.</param>
42 public HelperDescriptor(Type helperType
, String name
) : this(helperType
)
48 /// Gets the helper name.
50 /// <value>The name.</value>
57 /// Gets the type of the helper.
59 /// <value>The type of the helper.</value>
60 public Type HelperType
62 get { return helperType; }