Download Plugin (zip)

Stats

Version

0.3

Wheels Compatibility

1.0

Downloads

48

Last Updated

December 30, 2009

About Plugins

Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.

Read Using and Creating Plugins for more information.

Ioc Interface

Interface to the your BeanFactory

Author

Andrea Campolonghi

Description

Actually Support for ColdSpring only.

The plugin do not ship a factory framework copy and do not even provide a mapping. To be correctly loaded the BeanFactory must placed under your webroot or mapped accordingly.

Load the coldspring bean factory into cfwheels permanent scope.

loadBeanFactory(
id : factory id ,
configPath : path to config xml ,
properties : struct with values for xml value replacing,
type : 'ColdSpring')

Reference to the beanFactory.


getBeanFactory(id = factory id)

If you use a single factory you do not need to pass any id. By default the 'beanFactory' id is used.

 

Usage/Examples

Load BeanFactory with id 'factory'

loadBeanFactory(id="factory",configPath="/config/coldspring.xml");

Get a bean from the BeanFactory

obj = getBeanFactory(id="factory").getBean('myBean');

Change Log

Version 0.3—December 15, 2009 Download

  • None recorded.
  • Wheels compatibility: 1.0.

Version 0.2—December 7, 2009 Download

0.2

  • support for properties injection at beanFactory creation
  • Wheels compatibility: 1.0.

Version 0.1—December 7, 2009 Download

  • Initial release.
  • Wheels compatibility: 1.0.