Skip to content

Instantly share code, notes, and snippets.

@brian428
Created April 28, 2010 02:21
Show Gist options
  • Save brian428/381649 to your computer and use it in GitHub Desktop.
Save brian428/381649 to your computer and use it in GitHub Desktop.
<swiz:Swiz>
<swiz:beanProviders>
<swiz:BeanProvider>
<swiz:Bean name="applicationModel">
<model:ApplicationModel />
</swiz:Bean>
<swiz:Bean name="userController">
<control:UserController />
</swiz:Bean>
</swiz:BeanProvider>
</swiz:beanProviders>
<swiz:config>
<swiz:SwizConfig
eventPackages="com.foo.events, org.bar.events"
viewPackages="com.foo.views, org.bar.events" />
</swiz:config>
</swiz:Swiz>
<?xml version="1.0" encoding="utf-8"?>
<swiz:BeanProvider
xmlns:swiz="http://swiz.swizframework.org"
xmlns:model="com.example.model.*"
xmlns:control="com.example.control.*">
<model:ApplicationModel id="applicationModel" />
<control:UserController id="userController" />
</swiz:BeanProvider>
<?xml version="1.0" encoding="utf-8"?>
<swiz:BeanProvider
xmlns:swiz="http://swiz.swizframework.org"
xmlns:model="com.example.model.*"
xmlns:control="com.example.control.*">
<model:ApplicationModel id="applicationModel" />
<control:UserController id="userController" />
</swiz:BeanProvider>
<swiz:Prototype id="editViewPresoModel"
type="{ EditViewPresentationModel }"
constructorArguments="{ someOtherBean }" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment