lbg.middleware.util
Class PropertiesJobLoader
java.lang.Object
lbg.middleware.util.PropertiesJobLoader
public class PropertiesJobLoader
- extends java.lang.Object
Utility class to load a JobDescriptor from a file in Properties format.
- Since:
- 2006-12-13
- Author:
- Xavier Dalem, Cyril Briquet
- See Also:
Properties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesJobLoader
public PropertiesJobLoader()
loadJobDescription
@Deprecated
public JobDescriptor loadJobDescription(UserAgent user,
java.util.Properties props)
throws GridException
- Deprecated. Relying on the current working directory is dangerous and
can yield confusing results for the user. The best is usually to specify
the directory containing the JDF file using
loadJobDescription(UserAgent, Properties, String)
- Loads a JobDescriptor form a set of properties coming fro a JDF file.
Pathanmes are resolved from user.dir
- Throws:
GridException
loadJobDescription
public JobDescriptor loadJobDescription(UserAgent user,
java.util.Properties props,
java.lang.String basedir)
throws GridException
- Loads a JobDescriptor form a set of properties coming from a JDF file.
- Parameters:
user
- The user that will manage the JobDescriptorprops
- The properties defining the JobDescriptorbasedir
- The base directory from where the pathnames (e.g. to data,
archive files) will be resolved.
- Returns:
- A fully formed JobDescriptor
- Throws:
GridException
- See Also:
JobDescriptor
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.