Class DefaultBinder
java.lang.Object
tech.guilhermekaua.spigotboot.config.binding.DefaultBinder
- All Implemented Interfaces:
Binder
Default implementation of the
Binder interface.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T> @NotNull BindingResult<T>bind(@NotNull ConfigNode node, @NotNull Class<T> type, @NotNull NamingStrategy namingStrategy) Binds a config node to a new instance of the target type.<T> @NotNull BindingResult<T>bind(@NotNull ConfigNode node, T instance, @NotNull NamingStrategy namingStrategy) Binds config values onto an existing instance (field injection only).<T> voidunbind(T object, @NotNull MutableConfigNode node, @NotNull NamingStrategy namingStrategy) Serializes an object to a config node.
-
Method Details
-
bind
@NotNull public <T> @NotNull BindingResult<T> bind(@NotNull @NotNull ConfigNode node, @NotNull @NotNull Class<T> type, @NotNull @NotNull NamingStrategy namingStrategy) Description copied from interface:BinderBinds a config node to a new instance of the target type. -
bind
@NotNull public <T> @NotNull BindingResult<T> bind(@NotNull @NotNull ConfigNode node, @NotNull T instance, @NotNull @NotNull NamingStrategy namingStrategy) Description copied from interface:BinderBinds config values onto an existing instance (field injection only). -
unbind
public <T> void unbind(@NotNull T object, @NotNull @NotNull MutableConfigNode node, @NotNull @NotNull NamingStrategy namingStrategy) Description copied from interface:BinderSerializes an object to a config node.
-