Class AbstractScriptableHeapObject.AbstractScriptableHeaplet<V>

    • Constructor Detail

      • AbstractScriptableHeaplet

        protected AbstractScriptableHeaplet()
    • Method Detail

      • destroy

        public void destroy()
        Description copied from interface: Heaplet
        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.
        Specified by:
        destroy in interface Heaplet
        Overrides:
        destroy in class GenericHeaplet
      • newInstance

        protected abstract AbstractScriptableHeapObject<V> newInstance​(Script script,
                                                                       Heap heap)
                                                                throws HeapException
        Creates the new heap object instance using the provided script.
        Parameters:
        script - The compiled script.
        heap - The heap to look for bindings
        Returns:
        The new heap object instance using the provided script.
        Throws:
        HeapException - if an exception occurred during creation of the heap object or any of its dependencies.
        JsonValueException - if the heaplet (or one of its dependencies) has a malformed configuration.