- All Known Subinterfaces:
ComponentComposite,ComponentComposite.ExtendedComponentComposite<CTX,,CON> LinkComponent.LinkAutomaton,LinkComponent.LinkComponentBuilder<B>
- All Known Implementing Classes:
AbstractComponentComposite,AbstractComponentComposite.ExtendedCompositeComponentImpl,AbstractDeviceAutomaton,LinkAutomatonImpl
A component implementing the
LinkComponent interface supports
establishing a connection (not necessarily a network connection). I.e. such a
component may be instructed open or close a connection:
"open" - "close"
In case a connection is to be provided to the Openable.open() method, you may
use the ConnectionComponent interface with its
ConnectionOpenable.open(Object) method, which provides an argument
specifying the connection to be passed to the Component.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA system implementing theLinkComponent.LinkAutomatoninterface supports managingLinkComponentinstances 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 interfaceSimilar to theLinkComponentwith 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.Openable
Openable.OpenAutomaton, Openable.OpenBuilder<B extends Openable.OpenBuilder<B>> -
Method Summary
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUncheckedMethods inherited from interface org.refcodes.component.Openable
open, openUnchecked