Package org.jppf.utils
Interface JPPFConfiguration.ConfigurationSource
- Enclosing class:
- JPPFConfiguration
public static interface JPPFConfiguration.ConfigurationSource
Implement this interface to provide an alternate configuration source via an
InputStream.
WARNING: not shown in the interface but also required: implementations must have a public no-arg constructor.
-
Method Summary
Modifier and TypeMethodDescriptionObtain the JPPF configuration properties from an input stream.
-
Method Details
-
getPropertyStream
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 toProperties.load(InputStream)).- Returns:
- an
InputStreaminstance. - Throws:
IOException- if the stream cannot be created.
-