poodinis/docs/poodinis/autowire/OptionalDependency.html
2021-01-04 02:04:20 +03:00

107 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Struct OptionalDependency</title>
<link rel="stylesheet" href="../../css/style.min.css"/>
<script type="text/javascript" src="../../js/script.min.js"></script>
</head>
<body onload="setupDdox();">
<header></header>
<nav id="main-nav">
<div>
<noscript>
<p style="color: red">The search functionality needs JavaScript enabled</p>
</noscript>
<div id="symbolSearchPane" style="display: none">
<form action="#" method="GET">
<input id="symbolSearch" type="text" name="q" placeholder="Search for symbols" autocomplete="off" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();" autofocus/>
</form>
<ul id="symbolSearchResults" class="symbolList" style="display: none"></ul><script type="application/javascript" src="../../symbols.js"></script><script type="application/javascript">var symbolSearchRootDir = "../../";
document.getElementById('symbolSearchPane').style.display = 'block';</script>
</div>
<ul class="tree-view">
<li class="tree-view ">
<div class="package ">
<a href="../../poodinis.html">poodinis</a>
</div>
<ul class="tree-view">
<li>
<div class="module selected">
<a href="../../poodinis/autowire.html">autowire</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/container.html">container</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/context.html">context</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/factory.html">factory</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/polyfill.html">polyfill</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/registration.html">registration</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../poodinis/valueinjection.html">valueinjection</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
<p id="main-nav-footer">
Built with
<a href="https://github.com/MartinNowak/scod">scod</a>
</p>
</nav>
<div id="main-contents">
<div>
<h1>Struct OptionalDependency</h1><p>UDA for marking autowired dependencies optional.
Optional dependencies will not lead to a resolveException when there is no type registered for them.
The member will remain null.
</p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="kwd">struct</span> <span class="typ">OptionalDependency</span>
<span class="pun">;</span>
</div>
</code>
</div>
</div>
<footer>
<div id="license-info">
<p>Mike Bierlee, m.bierlee@lostmoment.com
</p>
<p>2014-2021 Mike Bierlee
</p>
<p>This software is licensed under the terms of the MIT license.
The full terms of the license can be found in the LICENSE file.
</p>
</div>
</footer>
</div>
</body>
</html>