- Type Parameters:
CON
- The type of the connection to be used.
- All Superinterfaces:
Closable
,ConnectionOpenable<CON>
- All Known Subinterfaces:
ComponentComposite.ExtendedComponentComposite<CTX,
,CON> ConnectionComponent.ConnectionAutomaton<CON>
,ConnectionComponent.ConnectionComponentBuilder<CON,
B>
- All Known Implementing Classes:
AbstractComponentComposite.ExtendedCompositeComponentImpl
,ConnectionAutomatonImpl
A component implementing the
ConnectionComponent
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 the
ConnectionOpenable.open(Object)
method (as it may have been passed via the
constructor), you may use the LinkComponent
interface with its
Openable.open()
method, which does not require any arguments
specifying a connection.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
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