Navigation Menu

Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
Add link to wiki to README.
Remove old FW/1 view.
Add notes to Application.cfc with things left to be tested.
  • Loading branch information
seancorfield committed Dec 28, 2011
1 parent 2ae085c commit ae03a23
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
19 changes: 19 additions & 0 deletions Application.cfc
Expand Up @@ -39,4 +39,23 @@
new declared.things.myconfig( '/some/other/file.xml' ),
{ name = "MyConfigBean" } ) );
}
<h2>Welcome to InjectOne!</h2>
<cfset bf = getBeanFactory() />
<cfset item = bf.getBean('item') />
<cfdump var="#item#" label="Item Bean"/>
<cfdump var="#item.getNewItem()#" label="New Item From Bean-Aware Item Bean"/>
<cfset user1 = bf.getBean('userfish') />
<cfdump var="#user1#" label="User 1 Bean"/>
<cfdump var="#user1.getItem()#" label="User 1's Item Bean - should be null, transient not injected"/>
<cfset user2 = bf.getBean('userfish') />
<cfdump var="#user2#" label="User 2 Bean"/>
<cfdump var="#user2.getItem()#" label="User 2's Item Bean - should be null, transient not injected"/>
<cfdump var="#bf.getBean('userservice')#" label="User Service"/>
<cfdump var="#bf.getBean('product')#" label="Product Service"/>
<cfdump var="#bf.getBean('userfish').product.getUserService()#" label="bf.getBean('userfish').product.getUserService()"/>
<cfdump var="#bf.getBean('magicvalue')#" label="bf.getBean('magicvalue')"/>
<cfdump var="#bf.getBean('item')#" label="bf.getBean('item') - transient"/>
<cfset bf.getBean('myconfig1').explain() />
<cfset bf.getBean('myconfig2').explain() />
<cfdump var="#bf.getBeanInfo()#"/>
*/
4 changes: 3 additions & 1 deletion README.txt
Expand Up @@ -15,4 +15,6 @@ folder name, e.g.,
/model/services/product.cfc will be "product" and "productService"

Folder names may be singular or plural. DI/1 assumes that if a folder name ends in
"s" it can remove that to get the singular name.
"s" it can remove that to get the singular name.

See https://github.com/seancorfield/di1/wiki for more detail.
19 changes: 0 additions & 19 deletions views/main/default.cfm

This file was deleted.

0 comments on commit ae03a23

Please sign in to comment.