spring:beans


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.


Property Summary

classLoader Passed to Spring for its DefaultResourceLoader.
files Spring XML configuration files.
name The name of the job.
resources Spring XML configuration classpath resources.

Example Summary

Example 1 See the examples in the examples/config directory.

Property Detail

classLoader

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

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.

files

Configured ByELEMENT
AccessREAD_WRITE
RequiredNot if resources are supplied.

Spring XML configuration files.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

The name of the job. Can be any text.

resources

Configured ByELEMENT
AccessREAD_WRITE
RequiredNot if files are supplied.

Spring XML configuration classpath resources.


Examples

Example 1

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 - 2011