Class AbstractScope
java.lang.Object
io.github.cowwoc.pouch10.core.AbstractScope
- All Implemented Interfaces:
Scope,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a child scope.protected voidEnsures that the scope is open.voidremoveChild(Scope child) Removes a child scope.
-
Field Details
-
children
The child scopes.
-
-
Constructor Details
-
AbstractScope
protected AbstractScope()Creates new scope.
-
-
Method Details
-
addChild
-
removeChild
Description copied from interface:ScopeRemoves a child scope.- Specified by:
removeChildin interfaceScope- Parameters:
child- the child scope
-
ensureOpen
protected void ensureOpen()Ensures that the scope is open.- Throws:
IllegalStateException- if the scope is closed
-