Package org.refcodes.component
Interface LinkComponent
-
- All Known Subinterfaces:
CompositeComponent,CompositeComponent.ExtendedCompositeComponent<CTX,CON>,LinkComponent.LinkAutomaton,LinkComponent.LinkComponentBuilder<B>
- All Known Implementing Classes:
AbstractDeviceAutomaton,CompositeComponentImpl,CompositeComponentImpl.ExtendedCompositeComponentImpl,DeviceAutomatonImpl
public interface LinkComponent extends Openable, Closable
A component implementing theLinkComponentinterface 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 theConnectionComponentinterface with itsConnectionOpenable.open(Object)method, which provides an argument specifying the connection to be passed to theComponent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLinkComponent.LinkAutomatonA 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 interfaceLinkComponent.LinkComponentBuilder<B extends LinkComponent.LinkComponentBuilder<B>>Similar 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, closeUnchecked
-
Methods inherited from interface org.refcodes.component.Openable
open, openUnchecked
-
-