Ignore fields

Don't get touchy touchy with my fields!

Ignore any field by using Java transient keyword, or by using our very own annotation @IgnoreField.

Ignored fields are not serialized to the config file, and do not have their value modified by sc-cfg.

import com.github.secretx33.sccfg.api.annotation.*;

@Configuration
public class MyConfig {
    // ignore transient fields
    public transient int someIgnoredInt = 0;
    
    // ignore fields annotated with @IgnoreField too
    @IgnoreField
    private String someIgnoredString = "rock";
}

Last updated