API reference

The packages and main types of com.comficonf:comficonf-api, and where to find the Javadoc.

The Javadoc of com.comficonf:comficonf-api is normative: where this site and the Javadoc disagree, the Javadoc wins. It is published at javadoc.io, and the Maven Central artifact ships -javadoc.jar and -sources.jar, so your IDE shows the Javadoc once you add the dependency; see the Quickstart.

com.comficonf.api

TypeRole
ComfiConfApiEntry point: get(), find(), register(plugin, resource), registrations(plugin), unregisterAll(plugin), connectionState(), apiVersion(), bridgeVersion(), and API_VERSION.
ConfigResourceA registered resource: id, display name, description, provider and callback thread. Built with ConfigResource.builder(id).
ConfigProviderThe four callbacks: describe(), read(), validate(proposed), apply(context).
CallbackThreadWORKER or MAIN.
ResourceRegistrationHandle of a registration: resourceId(), owner(), isActive(), notifyChanged(), unregister(), close().
ResourceIdA namespace:name id: ResourceId.of(namespace, name), ResourceId.parse(value).
ConfigSnapshotValues and revision returned by read(): ConfigSnapshot.of(values, revision).
ConfigValuesImmutable tree of values with typed getters, with, without and a builder.
ConfigPathBuilds and splits paths: child, index, parse.
ValidationResult, ValidationIssue, SeverityErrors and warnings with a path, a message and a code.
ApplyContextInput of apply: base revision, current and proposed values, changes, actor, callSync.
ApplyResult, ApplyStatusThe outcome of apply.
FieldChange, ChangeKindOne difference: path, kind (MODIFIED, ADDED, REMOVED, REORDERED), apply mode, sensitive flag, item key, before, after.
ActorThe account that requested an operation: id, label.
ConnectionStateDISCONNECTED, CONNECTING, UNPAIRED, CONNECTED.

com.comficonf.api.schema

TypeRole
ConfigSchemaThe fields of a resource: of(...), builder(), MAX_FIELDS (2000), MAX_DEPTH (8).
ConfigFieldStatic factories of every field type.
StringFieldBuilder, BooleanFieldBuilder, IntegerFieldBuilder, DecimalFieldBuilder, EnumFieldBuilder, StringListFieldBuilder, MaterialFieldBuilder, ObjectFieldBuilder, ObjectListFieldBuilderThe builders; see the schema reference.
ApplyModeLIVE or RESTART.
VisibilityConditionwhenEquals, whenNotEquals, whenIn, whenNotIn.
ChoiceA choice of an enum or string list: value, label, description.
MaterialFilterANY, BLOCK, ITEM.
FieldTypeThe field types.
SchemaExceptionThrown by builders for inconsistent definitions.

com.comficonf.api.io

TypeRole
Revisionsof(bytes), ofFile(path), ABSENT.
SafeFileWriterwrite, listBackups, restoreLatestBackup, lockFor.
BackupPolicyBackup directory and retention.
RevisionConflictExceptionThrown by SafeFileWriter.write when the file changed; carries currentRevision().

See SafeFileWriter and revisions.

com.comficonf.api.bukkit

TypeRole
SectionMapperMaps a Bukkit ConfigurationSection to schema values and back: of(schema), builder(schema) with keyedSection(fieldPath), schema(), read(section), write(values, section), validate(values).

See SectionMapper for Bukkit YAML.

Built from f6347d4 on

On this page