net.sf.spring.batch.impl
Class DefaultVersionProvider
java.lang.Object
net.sf.spring.batch.impl.DefaultVersionProvider
- All Implemented Interfaces:
- VersionProvider
- public class DefaultVersionProvider
- extends Object
- implements VersionProvider
A simple version provider that takes version from spring configuration.
- Author:
- willy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
protected String version
DefaultVersionProvider
public DefaultVersionProvider()
findVersion
public String findVersion()
- Called by launcher to find the current batch version.
- Specified by:
findVersion
in interface VersionProvider
- Returns:
- the batch version.
setVersion
public void setVersion(String version)
- Injection setter for the version.
- Parameters:
version
- the version to set
Copyright © 2009. All Rights Reserved.