|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHasLifecycle
An object with a lifecycle.
| Nested Class Summary | |
|---|---|
static class |
IHasLifecycle.ObjectClosedException
Indicates that the object was not open when some method was called requiring it to be open. |
| Method Summary | |
|---|---|
void |
close()
This closes the object by disposing of data backing objects or connections. |
boolean |
isOpen()
Returns true if the object is open, that is, ready to
be used; returns false otherwise |
boolean |
open()
This opens the object by performing any required initialization steps. |
| Method Detail |
|---|
boolean open()
throws java.io.IOException
false, then subsequent calls to
isOpen() will return false.
true if there were no errors in initialization;
false otherwise.
java.io.IOException - if there was IO error while performing initializationboolean isOpen()
true if the object is open, that is, ready to
be used; returns false otherwise
true if the object is open; false
otherwisevoid close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||