Uses of Interface
org.microbean.reference.DestructorRegistry.Destructor
-
Uses of DestructorRegistry.Destructor in org.microbean.reference
Methods in org.microbean.reference that return DestructorRegistry.DestructorModifier and TypeMethodDescriptionRemoves the supplied contextual instance and theDestructorRegistry.Destructorthat was registered with it.Methods in org.microbean.reference with parameters of type DestructorRegistry.DestructorModifier and TypeMethodDescriptionfinal booleanDefaultDestructorTree.register(Object reference, DestructorRegistry.Destructor destructor) If thisDefaultDestructorTreeis not closed, and if the suppliedreferencehas not yet been registered, registers it such that it will be destroyed by the supplieddestructorwhen thisDefaultDestructorTreeis closed, and returnstrue.booleanDestructorRegistry.register(Object instance, DestructorRegistry.Destructor destructor) Registers the supplied contextual instance such that at some future moment, or perhaps not at all, the suppliedDestructorRegistry.Destructorwill be run to destroy it idempotently, and returnstrueif and only if the registration was successful.final booleanRequest.register(Object reference, DestructorRegistry.Destructor destructor)