Class LazyBlockReference

  • All Implemented Interfaces:
    BlockReference

    public abstract class LazyBlockReference
    extends java.lang.Object
    implements BlockReference
    Lazy block reference.
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract JBlock create()
      Called when a block needs to be created.
      JBlock get​(boolean create)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyBlockReference

        public LazyBlockReference()
    • Method Detail

      • create

        protected abstract JBlock create()
        Called when a block needs to be created. Only called once in the whole life time of this object.
      • get

        public JBlock get​(boolean create)
        Specified by:
        get in interface BlockReference
        Parameters:
        create - If false, the method will return null if the block is not yet created.