|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.configmanager.internal.handlers.PropertiesFileConfigurationHandler
public final class PropertiesFileConfigurationHandler
PropertiesConfigurationFileHandler handles configuration files with extension of .properties.
| Constructor Summary | |
|---|---|
PropertiesFileConfigurationHandler()
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(java.io.File file)
Returns true if the specified file can be handled by this IConfigurationFileHandler. |
java.lang.String |
getServicePID(java.lang.String fileName)
Returns the configuration name of the specified fileName. |
java.util.Properties |
handle(java.io.File file)
Returns the properties after loading the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesFileConfigurationHandler()
| Method Detail |
|---|
public final java.lang.String getServicePID(java.lang.String fileName)
fileName. The specified fileName must not have
file path prefix. Returns null if the file name can not be handled by this handler.
getServicePID in interface IConfigurationFileHandlerfileName - The file name. This argument must not be null.
fileName argument.
public final java.util.Properties handle(java.io.File file)
throws java.lang.IllegalArgumentException
file. Returns empty properties if the
specified file does not have any configuration properties.
handle in interface IConfigurationFileHandlerfile - The configuration file to be loaded. This argument must not be null.
Properties of the specified file.
java.lang.IllegalArgumentException - thrown if the specified file argument is null.
public final boolean canHandle(java.io.File file)
throws java.lang.IllegalArgumentException
true if the specified file can be handled by this IConfigurationFileHandler.
canHandle in interface IConfigurationFileHandlerfile - The file to be handled. This argument must not be null.
boolean indicator whether this IConfigurationFileHandler able to handle file.
java.lang.IllegalArgumentException - Thrown if the specified file argument is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||