Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / Descriptors / BaseMetaDescriptor.cs
blob1f8483665d4897be7828d6cea4b99ace6d364839
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
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
17 using System;
19 /// <summary>
20 /// Common meta descriptor that represents configuration share by
21 /// controllers and actions.
22 /// </summary>
23 [Serializable]
24 public abstract class BaseMetaDescriptor
26 private LayoutDescriptor layout;
27 private RescueDescriptor[] rescues = new RescueDescriptor[0];
28 private ResourceDescriptor[] resources = new ResourceDescriptor[0];
29 private ICachePolicyConfigurer cacheConfigurer;
31 /// <summary>
32 /// Gets or sets the layout descriptor.
33 /// </summary>
34 /// <value>The layout.</value>
35 public LayoutDescriptor Layout
37 get { return layout; }
38 set { layout = value; }
41 /// <summary>
42 /// Gets or sets the rescues descriptors.
43 /// </summary>
44 /// <value>The rescues.</value>
45 public RescueDescriptor[] Rescues
47 get { return rescues; }
48 set { rescues = value; }
51 /// <summary>
52 /// Gets or sets the resources descriptors.
53 /// </summary>
54 /// <value>The resources.</value>
55 public ResourceDescriptor[] Resources
57 get { return resources; }
58 set { resources = value; }
61 /// <summary>
62 /// Gets the cache configurer associated with this action.
63 /// </summary>
64 /// <value>The cache configurers.</value>
65 public ICachePolicyConfigurer CacheConfigurer
67 get { return cacheConfigurer; }
68 set { cacheConfigurer = value; }