net.sf.spring.batch.impl
Class DefaultVersionProvider

java.lang.Object
  extended bynet.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

Field Summary
protected  String version
           
 
Constructor Summary
DefaultVersionProvider()
           
 
Method Summary
 String findVersion()
          Called by launcher to find the current batch version.
 void setVersion(String version)
          Injection setter for the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

protected String version
Constructor Detail

DefaultVersionProvider

public DefaultVersionProvider()
Method Detail

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.