Klasse CloseController
java.lang.Object
ch.nolix.core.programcontrol.closepool.CloseController
- Alle implementierten Schnittstellen:
ICloseController
- Version:
- 2020-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
.static CloseController
forElement
(GroupCloseable element) boolean
void
setParentClosePool
(IClosePool parentClosePool) Sets theIClosePool
the currentICloseController
will belong to.
-
Methodendetails
-
forElement
- Parameter:
element
-- Gibt zurück:
- a new
CloseController
for the given element. - Löst aus:
ArgumentIsNullException
- if the given element is null.
-
close
public void close()Closes all elements of the currentICloseController
.- Angegeben von:
close
in SchnittstelleICloseController
-
createCloseDependencyTo
Adds the given element to the currentICloseController
.- Angegeben von:
createCloseDependencyTo
in SchnittstelleICloseController
- Parameter:
element
-
-
getParentClosePool
- Angegeben von:
getParentClosePool
in SchnittstelleICloseController
- Gibt zurück:
- the parent
IClosePool
of the currentICloseController
.
-
hasClosed
public boolean hasClosed()- Angegeben von:
hasClosed
in SchnittstelleICloseController
- Gibt zurück:
- true if the current
ICloseController
has closed its elements.
-
setParentClosePool
Sets theIClosePool
the currentICloseController
will belong to.- Angegeben von:
setParentClosePool
in SchnittstelleICloseController
- Parameter:
parentClosePool
-
-