Module org.refcodes.component
Package org.refcodes.component
Interface ConnectionComponent.ConnectionAutomaton<CON>
- Type Parameters:
CON
- The type of the connection to be used.
- All Superinterfaces:
Closable
,Closable.CloseAutomaton
,ClosedAccessor
,ConnectionComponent<CON>
,ConnectionOpenable<CON>
,ConnectionOpenable.ConnectionOpenAutomaton<CON>
,ConnectionStatusAccessor
,OpenedAccessor
- All Known Implementing Classes:
ConnectionAutomatonImpl
- Enclosing interface:
- ConnectionComponent<CON>
public static interface ConnectionComponent.ConnectionAutomaton<CON>
extends ConnectionComponent<CON>, ConnectionOpenable.ConnectionOpenAutomaton<CON>, Closable.CloseAutomaton, ConnectionStatusAccessor
A system implementing the
ConnectionComponent.ConnectionAutomaton
interface supports
managing ConnectionComponent
instances and takes care that the
open/close statuses are invoked in the correct order by throwing
according exceptions in case the open/close-cycle is invoked in the wrong
order. A ConnectionComponent.ConnectionAutomaton
may be used to wrap a
ConnectionComponent
by a ConnectionComponentHandle
for
managing ConnectionComponent.ConnectionAutomaton
instances. The
ConnectionComponent
contains the business-logic where as the
ConnectionComponentHandle
provides the frame for managing this
business-logic. The ConnectionComponent.ConnectionAutomaton
takes care of the correct
open/close-cycle applied on a ConnectionComponent
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
Closable.CloseAutomaton, Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.component.ClosedAccessor
ClosedAccessor.ClosedMutator, ClosedAccessor.ClosedProperty
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionComponent
ConnectionComponent.ConnectionAutomaton<CON>, ConnectionComponent.ConnectionComponentBuilder<CON,
B extends ConnectionComponent.ConnectionComponentBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
ConnectionOpenable.ConnectionOpenAutomaton<CON>, ConnectionOpenable.ConnectionOpenBuilder<CON,
B extends ConnectionOpenable.ConnectionOpenBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
ConnectionStatusAccessor.ConnectionStatusMutator, ConnectionStatusAccessor.ConnectionStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
-
Method Summary
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
Methods inherited from interface org.refcodes.component.Closable.CloseAutomaton
isClosable
Methods inherited from interface org.refcodes.component.ClosedAccessor
isClosed
Methods inherited from interface org.refcodes.component.ConnectionOpenable
open, openUnchecked
Methods inherited from interface org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton
isOpenable
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isOpened