spring:beans

Description

An Oddjob job that will load a Spring application. The Spring XML configuration may be specified either as files or classpath resources.

Beans within Spring may be accessed from other Oddjob components using the notation ${id-of-this/name-of-bean}.

Oddjob beans are made available via a parent BeanFactory so can be accessed by reference.

Oddjobs beans and there properties can also be accessed using the ${id.property} notation within Spring configuration files.

Properties

NameDescriptionRequired
files Spring XML configuration files. Not if resources are supplied.
resources Spring XML configuration classpath resources. Not if files are supplied.
classLoader Passed to Spring for its DefaultResourceLoader. If not supplies the class loader for this class will be used which will be the Oddball class loader when installed as an Oddball. No.

Example

See the examples in the examples/config directory. To run the examples copy the examples/classes directory to it's parent directory so that Oddjob recognises them as part of the Oddball.


(c) Rob Gordon 2005 - 2009