Class BuildContext<I extends IComponent>


  • public class BuildContext<I extends IComponent>
    extends java.lang.Object
    A build context to hold the necessary meta info when building components.
    Author:
    jumperchen
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      I getOwner()
      Returns the owner component of the build context, if any.
      static <I extends IComponent>
      BuildContext<I>
      newInstance​(I owner)
      Creates a simple build context with the given immutable component.
      • Methods inherited from class java.lang.Object

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

      • getOwner

        public I getOwner()
        Returns the owner component of the build context, if any.
        Returns:
        null if the build content is not associated into a component.
      • newInstance

        public static <I extends IComponentBuildContext<I> newInstance​(I owner)
        Creates a simple build context with the given immutable component.
        Parameters:
        owner - the immutable component