Interface Heaplet

    • Method Detail

      • create

        Object create​(Name name,
                      JsonValue config,
                      Heap heap)
               throws HeapException
        Called to request the heaplet to create an object.
        Parameters:
        name - the name of the object to be created.
        config - the heaplet's configuration object.
        heap - the heap where object dependencies can be retrieved.
        Returns:
        the object created by the heaplet.
        Throws:
        HeapException - if an exception occurred during creation of the object or any of its dependencies.
        JsonValueException - if the heaplet (or one of its dependencies) has a malformed configuration object.
      • destroy

        void destroy()
        Called to indicate that the object created by the heaplet is going to be dereferenced. This gives the heaplet an opportunity to free any resources that are being held prior to its dereference.