org.jppf.utils
Interface JPPFConfiguration.ConfigurationSource

Enclosing class:
JPPFConfiguration

public static interface JPPFConfiguration.ConfigurationSource

Implement this interface to provide an alternate configuration source.

WARNING: not shown in the interface but also required: implementations must have a public no-arg constructor.


Method Summary
 InputStream getPropertyStream()
          Obtain the JPPF configuration properties from an input stream.
 

Method Detail

getPropertyStream

InputStream getPropertyStream()
                              throws IOException
Obtain the JPPF configuration properties from an input stream. The returned stream content must conform to the properties file's specifications (i.e. it must be usable as the argument to Properties.load(InputStream)).

Returns:
an InputStream instance.
Throws:
IOException - if the stream cannot be created.


Copyright © 2005-2010 JPPF Team.