org.sonatype.gossip.source
Class FileSource
java.lang.Object
org.sonatype.gossip.source.SourceSupport
org.sonatype.gossip.source.FileSource
- All Implemented Interfaces:
- Source
public class FileSource
- extends SourceSupport
Local file configuration source.
- Since:
- 1.0
- Author:
- Jason Dillon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileSource
public FileSource()
setFile
public void setFile(java.io.File file)
setFile
public void setFile(java.lang.String fileName)
getFile
public java.io.File getFile()
load
public Model load()
throws java.lang.Exception
- Description copied from interface:
Source
- Load a configuration model.
- Returns:
- The loaded model.
- Throws:
java.lang.Exception
- Failed to load the model.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2011 Sonatype. All Rights Reserved.