- Implemented support for view component caching. Just use the attribute
[castle.git] / MonoRail / Castle.MonoRail.Framework / Internal / Descriptors / BaseMetaDescriptor.cs
blob5b712449bea72ccbdc567979d37051df3edea732
1 // Copyright 2004-2007 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.Internal
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];
30 /// <summary>
31 /// Gets or sets the layout descriptor.
32 /// </summary>
33 /// <value>The layout.</value>
34 public LayoutDescriptor Layout
36 get { return layout; }
37 set { layout = value; }
40 /// <summary>
41 /// Gets or sets the rescues descriptors.
42 /// </summary>
43 /// <value>The rescues.</value>
44 public RescueDescriptor[] Rescues
46 get { return rescues; }
47 set { rescues = value; }
50 /// <summary>
51 /// Gets or sets the resources descriptors.
52 /// </summary>
53 /// <value>The resources.</value>
54 public ResourceDescriptor[] Resources
56 get { return resources; }
57 set { resources = value; }