Interface Destruction
- All Superinterfaces:
AutoCloseable,ReferencesSelector
An object describing the imminent destruction of a contextual instance by the
Factory.destroy(Object, Destruction) method.
Any Destruction implementation must also be a Creation implementation, or
undefined behavior and errors may occur.
- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Closes thisDestructionidempotently, normally thereby releasing a contextual instance's dependent objects that have been stored opaquely in thisDestructionby some other mechanism at creation time.Methods inherited from interface org.microbean.bean.ReferencesSelector
destroy, reference, references
-
Method Details
-
close
Closes thisDestructionidempotently, normally thereby releasing a contextual instance's dependent objects that have been stored opaquely in thisDestructionby some other mechanism at creation time.Many
Creationimplementations—and thereforeDestructionimplementations—are alsoAutoCloseableRegistryimplementations, which is often how dependent objects are stored in the opaque manner mentioned above. This is not a requirement of either theCreationorDestructioncontracts.- Specified by:
closein interfaceAutoCloseable- See Also:
-