Package net.orbyfied.j8.config
Interface Configurable<C extends Configuration>
public interface Configurable<C extends Configuration>
Represents a component that can
be configured using a configuration.
-
Method Summary
Modifier and TypeMethodDescriptionGet the configuration.Get the configuration path from the root to here.static <C extends Configuration>
Configurable<C>of(String path, Function<Configurable<C>, C> config)
-
Method Details
-
getConfigurationPath
String getConfigurationPath()Get the configuration path from the root to here.- Returns:
- The configuration path.
-
getConfiguration
C getConfiguration()Get the configuration.- Returns:
- The configuration.
-
of
static <C extends Configuration> Configurable<C> of(String path, Function<Configurable<C>, C> config)
-