|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cleanable
Cleanable
is an interface that provides methods for easily closing a bunch of Closeable
or Cleanable
instances.
Method Summary | |
---|---|
void |
cleanUp()
Closes all registered Closeable and Cleanable instances. |
void |
registerCleanable(Cleanable cleanableResource)
Registers a Cleanable instance. |
void |
registerCloseable(Closeable closeableResource)
Registers a Closeable instance. |
Method Detail |
---|
void registerCloseable(Closeable closeableResource)
Closeable
instance.
closeableResource
- The Closeable
resource that shall be closed during the next cleanUp()
call. This method has no effects, if
null
was passed.void registerCleanable(Cleanable cleanableResource)
Cleanable
instance.
cleanableResource
- The Cleanable
resource that shall be closed during the next cleanUp()
call. This method has no effects, if
null
was passed.void cleanUp()
Closeable
and Cleanable
instances.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |