Contents
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 void
close()
Closes thisDestruction
idempotently, normally thereby releasing a contextual instance's dependent objects that have been stored opaquely in thisDestruction
by some other mechanism at creation time.Methods inherited from interface org.microbean.bean.ReferencesSelector
reference, references
-
Method Details
-
close
Closes thisDestruction
idempotently, normally thereby releasing a contextual instance's dependent objects that have been stored opaquely in thisDestruction
by some other mechanism at creation time.Many
Creation
implementations—and thereforeDestruction
implementations—are alsoAutoCloseableRegistry
implementations, which is often how dependent objects are stored in the opaque manner mentioned above. This is not a requirement of either theCreation
orDestruction
contracts.- Specified by:
close
in interfaceAutoCloseable
- See Also:
-