Fixing an issue with output parameters that are of type IntPtr
[castle.git] / InversionOfControl / Castle.Windsor / Configuration / IConfigurationInterpreter.cs
blobccbffd769d7ff44a83911459794a05a04a0e42e5
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.Windsor.Configuration
17 using Castle.MicroKernel;
19 using Castle.Core.Resource;
21 /// <summary>
22 /// Interpreter of a specific language to describe
23 /// configuration nodes in a hierachical manner.
24 /// </summary>
25 public interface IConfigurationInterpreter
27 /// <summary>
28 /// Gets or sets the name of the environment.
29 /// </summary>
30 /// <value>The name of the environment.</value>
31 string EnvironmentName { get; set; }
33 /// <summary>
34 /// Exposes the reference to <see cref="IResource"/>
35 /// which the interpreter is likely to hold
36 /// </summary>
37 IResource Source { get; }
39 /// <summary>
40 /// Should obtain the contents from the resource,
41 /// interpret it and populate the <see cref="IConfigurationStore"/>
42 /// accordingly.
43 /// </summary>
44 /// <param name="resource"></param>
45 /// <param name="store"></param>
46 void ProcessResource(IResource resource, IConfigurationStore store);