Package Summary  Overview Summary

class:Layer.Controller [NONE]

  • Enclosing class:
    Layer


    public static final class Layer.Controller
    extends Object
    
    Controls a layer. The static methods defined by Layer to create module layers return a Controller that can be used to control modules in the layer.

    Unless otherwise specified, passing a null argument to a method in this class causes a NullPointerException to be thrown.

    API Note:
    Care should be taken with Controller objects, they should never be shared with untrusted code.
    Since:
    9

method:layer() [NONE]

  • layer

    public Layer layer()
    Returns the layer that this object controls.
    Returns:
    the layer

method:addReads(java.lang.reflect.Module, java.lang.reflect.Module) [NONE]

  • addReads

    public Layer.Controller addReads(Module source,
                                     Module target)
    Updates module source in the layer to read module target. This method is a no-op if source already reads target.
    Implementation Note:
    Read edges added by this method are weak and do not prevent target from being GC'ed when source is strongly reachable.
    Parameters:
    source - The source module
    target - The target module to read
    Returns:
    This controller
    Throws:
    IllegalArgumentException - If source is not in the layer
    See Also:
    Module.addReads(java.lang.reflect.Module)

method:addOpens(java.lang.reflect.Module, java.lang.String, java.lang.reflect.Module) [NONE]