Module org.refcodes.component
Package org.refcodes.component
Interface ConnectionComponentHandle<H,CON>
-
- Type Parameters:
H
- The type of the handles.CON
- The connection used to open the referenced instance.
- All Superinterfaces:
ClosableHandle<H>
,ConnectionOpenableHandle<H,CON>
- All Known Subinterfaces:
ConnectionComponentHandle.ConnectionAutomatonHandle<H,CON>
public interface ConnectionComponentHandle<H,CON> extends ConnectionOpenableHandle<H,CON>, ClosableHandle<H>
TheConnectionComponentHandle
manages variousConnectionStatus
states forConnectionComponent
instances each related to a handle. Operations manipulating on theConnectionStatus
are invoked by thisConnectionComponentHandle
with a handle identifying the according referencedComponent
.The
ConnectionComponent
contains the business-logic where as theConnectionComponentHandle
provides the frame for managing this business-logic. TheConnectionComponentHandle.ConnectionAutomatonHandle
takes care of the correct open/close-cycle applied on aConnectionComponent
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConnectionComponentHandle.ConnectionAutomatonHandle<H,CON>
TheConnectionComponentHandle.ConnectionAutomatonHandle
is an automaton managing variousConnectionStatus
states forConnectionComponent
instances each related to a handle.-
Nested classes/interfaces inherited from interface org.refcodes.component.ClosableHandle
ClosableHandle.CloseAutomatonHandle<H>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenableHandle
ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON>
-
-
Method Summary
-
Methods inherited from interface org.refcodes.component.ClosableHandle
close, closeUnchecked, hasClosable
-
Methods inherited from interface org.refcodes.component.ConnectionOpenableHandle
hasConnectionOpenable, open, openUnchecked
-
-