Package org.kiwiproject.beta.base
Class KiwiCloseables.CloseDescriptor
java.lang.Object
org.kiwiproject.beta.base.KiwiCloseables.CloseDescriptor
- Enclosing class:
- KiwiCloseables
A description of how to close a specific object.
-
Method Summary
-
Method Details
-
of
Create an instance assuming the method to close the object is named "close".- Parameters:
object- to object to close- Returns:
- a new instance
-
of
Create an instance assuming the method to close the object is namedcloseMethodName.- Parameters:
object- the object to closecloseMethodName- the name of the method that will close the object- Returns:
- a new instance
-
object
Contains the object to be closed, ornull. -
closeMethodName
The name of the "close" method.
-