Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 793 Bytes
<h1>Welcome to DI/1!</h1>
<p>DI/1 is a lightweight, convention-over-configuration dependency injection framework a.k.a. bean factory.</p>
<p>All you need is <tt>ioc.cfc</tt>. See <a href="">the DI/1 wiki</a> for detailed documentation.</p>
<pre>var bf = new ioc( "/model" ); // DI/1 will find all CFCs under /model
svc = bf.getBean( "userService" ); // typical singleton: UserService.cfc or services/user.cfc
bean = bf.getBean( "item" ); // typical transient: beans/item.cfc</pre>
<p>DI/1 autowires by name and attempts to resolve constructor arguments, setters and property declarations (when implicit setters are used).</p>
<p>If you want to run the test suite, install <a href="">MXUnit</a> and run the Ant script.</p>