Schnittstelle ICloseController
- Alle bekannten Implementierungsklassen:
CloseController
public interface ICloseController
- Version:
- 2022-07-05
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
close()
Closes all elements of the currentICloseController
.void
createCloseDependencyTo
(GroupCloseable element) Adds the given element to the currentICloseController
.boolean
void
setParentClosePool
(IClosePool parentClosePool) Sets theIClosePool
the currentICloseController
will belong to.
-
Methodendetails
-
close
void close()Closes all elements of the currentICloseController
. -
createCloseDependencyTo
Adds the given element to the currentICloseController
.- Parameter:
element
-- Löst aus:
RuntimeException
- if the currentICloseController
is already closed.RuntimeException
- if the currentICloseController
contains already the given element.
-
getParentClosePool
IClosePool getParentClosePool()- Gibt zurück:
- the parent
IClosePool
of the currentICloseController
.
-
hasClosed
boolean hasClosed()- Gibt zurück:
- true if the current
ICloseController
has closed its elements.
-
setParentClosePool
Sets theIClosePool
the currentICloseController
will belong to.- Parameter:
parentClosePool
-- Löst aus:
RuntimeException
- if the given parentClosePool is null.
-