Package org.refcodes.component
Interface ConnectionComponent<CON>
-
- Type Parameters:
CON
- The type of the connection to be used.
- All Superinterfaces:
Closable
,ConnectionOpenable<CON>
- All Known Subinterfaces:
CompositeComponent.ExtendedCompositeComponent<CTX,CON>
,ConnectionComponent.ConnectionAutomaton<CON>
,ConnectionComponent.ConnectionComponentBuilder<CON,B>
- All Known Implementing Classes:
CompositeComponentImpl.ExtendedCompositeComponentImpl
,ConnectionAutomatonImpl
public interface ConnectionComponent<CON> extends ConnectionOpenable<CON>, Closable
A component implementing theConnectionComponent
interface supports a connection. I.e. such a component may be instructed open or close a connection: "open" - "close" In case no connection is to be provided to theConnectionOpenable.open(Object)
method (as it may have been passed via the constructor), you may use theLinkComponent
interface with itsOpenable.open()
method, which does not require any arguments specifying a connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConnectionComponent.ConnectionAutomaton<CON>
A system implementing theConnectionComponent.ConnectionAutomaton
interface supports managingConnectionComponent
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.static interface
ConnectionComponent.ConnectionComponentBuilder<CON,B extends ConnectionComponent.ConnectionComponentBuilder<CON,B>>
Similar to theConnectionComponent
with additional according builder methods.-
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.ConnectionOpenable
ConnectionOpenable.ConnectionOpenAutomaton<CON>, ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
-
-
Method Summary
-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionOpenable
open, openUnchecked
-
-