|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.AbstractCleanable
public abstract class AbstractCleanable
AbstractCleanable
is implemented by classes that collect Closeable
instances that shall be closed at the end of a process.
Constructor Summary | |
---|---|
AbstractCleanable()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCleanable()
Method Detail |
---|
public void registerCloseable(Closeable closeableResource)
Cleanable
Closeable
instance.
registerCloseable
in interface Cleanable
closeableResource
- The Closeable
resource that shall be closed during the next Cleanable.cleanUp()
call. This method has no effects, if
null
was passed.public void registerCleanable(Cleanable cleanableResource)
Cleanable
Cleanable
instance.
registerCleanable
in interface Cleanable
cleanableResource
- The Cleanable
resource that shall be closed during the next Cleanable.cleanUp()
call. This method has no effects, if
null
was passed.public void cleanUp()
Cleanable
Closeable
and Cleanable
instances.
cleanUp
in interface Cleanable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |