Skip to content

Commit

Permalink
add global scope doc
Browse files Browse the repository at this point in the history
  • Loading branch information
f3lang committed Feb 27, 2018
1 parent caeacee commit d65d2d3
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions docs/tutorial-global_scope.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Tutorial: global_scope</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Tutorial: global_scope</h1>

<section>

<header>


<h2>global_scope</h2>
</header>

<article>
<p>The Object Manager has an option to session persistent in the global scope. This is useful, if you have
different locations, which cannot be resolved properly by the object manager (e.g. abstract parent classes)</p>
<p>When you enable the option &quot;globalScope&quot; in the options on instantiating the objectmanager, the Objectmanager
will create an object _cdi in the global scope, which will be reused on other instantiations of the
Objectmanager. </p>
<p>Have in mind, that you should not rely on global vars, since it is a sign,
that you could optimize your code. But cdi gives you this possibility, if you have no other way to go. </p>
</article>

</section>

</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AbstractInstantiator.html">AbstractInstantiator</a></li><li><a href="ConfigResolver.html">ConfigResolver</a></li><li><a href="DependencyTree.html">DependencyTree</a></li><li><a href="ModuleAnalyzer.html">ModuleAnalyzer</a></li><li><a href="ModuleResolver.html">ModuleResolver</a></li><li><a href="ObjectManager.html">ObjectManager</a></li><li><a href="Prototype.html">Prototype</a></li><li><a href="Singleton.html">Singleton</a></li></ul><h3>Tutorials</h3><ul><li><a href="tutorial-cache.html">cache</a></li><li><a href="tutorial-dependency_trees.html">dependency_trees</a></li><li><a href="tutorial-global_scope.html">global_scope</a></li><li><a href="tutorial-injection.html">injection</a></li><li><a href="tutorial-instantiator.html">instantiator</a></li><li><a href="tutorial-module_structure.html">module_structure</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>

0 comments on commit d65d2d3

Please sign in to comment.