Package org.spongepowered.api.config
Annotation Type ConfigDir
-
@Retention(RUNTIME) @Target({PARAMETER,FIELD}) public @interface ConfigDir
Provides an convenient injection forConfigRoot.directory()
.Use this annotation on a
Path
. Remember thatInject
is also necessary.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description boolean
sharedRoot
Whether the the shared root for configuration should be used, or instead, the plugin-specific configuration directory.
-
-
-
Element Detail
-
sharedRoot
boolean sharedRoot
Whether the the shared root for configuration should be used, or instead, the plugin-specific configuration directory.- Returns:
- True to use a shared root configuration
- See Also:
For information on what the shared root is
-
-