Annotation Type PropertyFile
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface PropertyFile
Provides metainformation to link this class to a physical file- Since:
- 1.0
- Author:
- Michael Stocker
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends Converters>converterOptional: TheConvertersimplementation to be used for converting values to strings and back.StringfileDirOptional: An absolute or relative path leading to the folder containing the physical file.Class<? extends Storage>storageOptional: TheStorageimplementation to be used for writing and loading the physical file.
-
-
-
Element Detail
-
fileName
String fileName
The name of the physical file.E.g.
mysettings.file
-
-
-
fileDir
String fileDir
Optional: An absolute or relative path leading to the folder containing the physical file.Defaults to the working directory.
- Default:
- "."
-
-
-
converter
Class<? extends Converters> converter
Optional: TheConvertersimplementation to be used for converting values to strings and back.Defaults to
DefaultConvertersImpl.- Default:
- org.crumbleworks.forge.crumbprops.DefaultConvertersImpl.class
-
-
-
storage
Class<? extends Storage> storage
Optional: TheStorageimplementation to be used for writing and loading the physical file.Defaults to
DefaultStorageImpl.- Default:
- org.crumbleworks.forge.crumbprops.DefaultStorageImpl.class
-
-