This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added VariablePlaceholderConfigurer snippet
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...ring.VisualStudio/CodeSnippets/Snippets/Core/Config/VariablePlaceholderConfigurer.snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters