Module org.refcodes.component
Package org.refcodes.component
Interface BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT>
-
- Type Parameters:
INPUT
- The type of the input connection to be used.OUTPUT
- The type of the output connection to be used.
- All Superinterfaces:
BidirectionalConnectionOpenable<INPUT,OUTPUT>
,OpenedAccessor
- All Known Subinterfaces:
BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,OUTPUT>
- Enclosing interface:
- BidirectionalConnectionOpenable<INPUT,OUTPUT>
public static interface BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT> extends BidirectionalConnectionOpenable<INPUT,OUTPUT>, OpenedAccessor
TheBidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton
interface defines those methods related to the opening of connection(s) life-cycle. The semantics of this interface is very similar to that of theConfigurable.ConfigureAutomaton
interface. To clarify the context regarding connections, theBidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton
interface has been introduced.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionOpenable
BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT>
-
Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isOpenable(INPUT aInputConnection, OUTPUT aOutputConnection)
Determines whether the given connection may get opened, if true then component may open a connection with the given connection via theBidirectionalConnectionOpenable.open(Object, Object)
method.-
Methods inherited from interface org.refcodes.component.BidirectionalConnectionOpenable
open
-
Methods inherited from interface org.refcodes.component.OpenedAccessor
isOpened
-
-
-
-
Method Detail
-
isOpenable
boolean isOpenable(INPUT aInputConnection, OUTPUT aOutputConnection)
Determines whether the given connection may get opened, if true then component may open a connection with the given connection via theBidirectionalConnectionOpenable.open(Object, Object)
method. Usually no physical connection is established; usually criteria describing the provided connection are evaluated; for example the connection is tested against a black list, a white list or against well-formedness or whether the specified protocols are supported (in case of a connection being a String URL beginning with "http://", "ftp://" or similar). --------------------------------------------------------------------- CAUTION: Even in case true is returned, the actual opening of a connection may fail (e.g. due to network failure or authentication issues). ---------------------------------------------------------------------- Parameters:
aInputConnection
- The input connection used for opening the connection.aOutputConnection
- The output connection used for opening the connection.- Returns:
- True if
BidirectionalConnectionOpenable.open(Object, Object)
is theoretically possible.
-
-