Class BuildReference.DefaultHolderFactory

  • All Implemented Interfaces:
    ExtensionPoint, BuildReference.HolderFactory
    Enclosing class:

    public static final class BuildReference.DefaultHolderFactory
    extends Object
    implements BuildReference.HolderFactory
    Default factory if none other are installed. Its behavior can be controlled via the system property MODE_PROPERTY:
    soft (default)
    Use SoftReferences. Builds will be kept around so long as memory pressure is not too high.
    Use WeakReferences. Builds will be kept only until the next full garbage collection cycle.
    Use strong references. Builds will still be loaded lazily, but once loaded, will not be released.
    Do not hold onto builds at all. Mainly offered as an option for the purpose of reproducing lazy-loading bugs.