Module org.refcodes.component
Package org.refcodes.component
Interface ConnectionAccessor.ConnectionProperty<CON>
- Type Parameters:
CON
- The type of the connection property.
- All Superinterfaces:
ConnectionAccessor<CON>
,ConnectionAccessor.ConnectionMutator<CON>
- Enclosing interface:
- ConnectionAccessor<CON>
public static interface ConnectionAccessor.ConnectionProperty<CON>
extends ConnectionAccessor<CON>, ConnectionAccessor.ConnectionMutator<CON>
Provides a connection property for e.g. an
InputStream
or an
OutputStream
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionAccessor
ConnectionAccessor.ConnectionMutator<CON>, ConnectionAccessor.ConnectionProperty<CON>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CON
letConnection
(CON aConnection) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given connection (setter) as ofConnectionAccessor.ConnectionMutator.setConnection(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.component.ConnectionAccessor
getConnection
Methods inherited from interface org.refcodes.component.ConnectionAccessor.ConnectionMutator
setConnection
-
Method Details
-
letConnection
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given connection (setter) as ofConnectionAccessor.ConnectionMutator.setConnection(Object)
and returns the very same value (getter).- Parameters:
aConnection
- The connection to set (viaConnectionAccessor.ConnectionMutator.setConnection(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-