public interface Fraction<T extends Fraction>
While each portion of functionality is called a "fraction", this class maps to the configuration there-of. It should be implemented to include whatever configuration is appropriate for the subset of functionality.
In the event a logical "fraction" requires no configuration, a subclass of this class is not required.
For functionality coming in through WildFly, the implementation is
a sub-class of the matching WildFly subsystem configuration tree from
the wildfly-config-api
project.
Modifier and Type | Method and Description |
---|---|
default T |
applyDefaults()
Apply whatever defaults are required.
|
default T |
applyDefaults(boolean hasConfiguration)
The container always calls this method, but the default implementation delegates to
applyDefaults() . |
default T applyDefaults()
applyDefaults(boolean)
default T applyDefaults(boolean hasConfiguration)
applyDefaults()
.
Unlike applyDefaults()
this method allows a fraction to customize the defaults depending on whether this fraction was explicitly configured by a
user or not.
hasConfiguration
- Copyright © 2020 JBoss by Red Hat. All rights reserved.