Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Added VariablePlaceholderConfigurer snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaia committed Mar 31, 2011
1 parent 86f3643 commit 4ed73fe
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>VariablePlaceholderConfigurer example</Title>
<Author>Bruno Baia</Author>
<Shortcut>VariablePlaceholderConfigurer</Shortcut>
<Description>Resolves placeholder values in one or more object definitions</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>sectionNames</ID>
<ToolTip>.NET configuration section names (like AppSettings) as comma-separeted list</ToolTip>
</Literal>
</Declarations>
<Code Language="Spring">
<![CDATA[<object type="Spring.Objects.Factory.Config.VariablePlaceholderConfigurer, Spring.Core">
<property name="VariableSources">
<list>
<object type="Spring.Objects.Factory.Config.ConfigSectionVariableSource, Spring.Core">
<property name="SectionNames" value="$sectionNames$" />
</object>
<!-- Other 'IVariableSource' implementations here -->
</list>
</property>
</object>]]>
</Code>
</Snippet>
</CodeSnippet>
4 changes: 4 additions & 0 deletions src/Spring.VisualStudio/Spring.VisualStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@
<Content Include="CodeSnippets\Snippets\Web\AspNetCache.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="CodeSnippets\Snippets\Core\Config\VariablePlaceholderConfigurer.snippet">
<IncludeInVSIX>true</IncludeInVSIX>
<SubType>Designer</SubType>
</Content>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
Expand Down

0 comments on commit 4ed73fe

Please sign in to comment.