ExposableOptions.java
972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.modconfig;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation which can be a applied to mod classes to indicate that members
* decorated with the Gson Expose annotation should be serialised with Gson.
*
* @author Adam Mummery-Smith
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExposableOptions
{
/**
* Configuration strategy to use
*/
ConfigStrategy strategy() default ConfigStrategy.Unversioned;
/**
* Config file name, if not specified the mod class name is used
*/
String filename() default "";
/**
* Set to true to disable write anti-hammer for config file
*/
boolean aggressive() default false;
}