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 /// Common meta descriptor that represents configuration share by
21 /// controllers and actions.
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
;
32 /// Gets or sets the layout descriptor.
34 /// <value>The layout.</value>
35 public LayoutDescriptor Layout
37 get { return layout; }
38 set { layout = value; }
42 /// Gets or sets the rescues descriptors.
44 /// <value>The rescues.</value>
45 public RescueDescriptor
[] Rescues
47 get { return rescues; }
48 set { rescues = value; }
52 /// Gets or sets the resources descriptors.
54 /// <value>The resources.</value>
55 public ResourceDescriptor
[] Resources
57 get { return resources; }
58 set { resources = value; }
62 /// Gets the cache configurer associated with this action.
64 /// <value>The cache configurers.</value>
65 public ICachePolicyConfigurer CacheConfigurer
67 get { return cacheConfigurer; }
68 set { cacheConfigurer = value; }