public class SimpleConnectionDirectory extends SimpleDirectory<Connection>
Constructor and Description |
---|
SimpleConnectionDirectory(Collection<Connection> connections)
Creates a new SimpleConnectionDirectory which provides access to the
connections contained within the given Map.
|
Modifier and Type | Method and Description |
---|---|
Connection |
putConnection(Connection connection)
An internal method for modifying the Connections in this Directory.
|
Connection |
removeConnection(String identifier)
An internal method for removing a Connection from this Directory.
|
add, get, getAll, getIdentifiers, getObjects, remove, setObjects, update
public SimpleConnectionDirectory(Collection<Connection> connections)
connections
- A Collection of all connections that should be present in this
connection directory.public Connection putConnection(Connection connection)
connection
- The connection to add or update the Directory with.public Connection removeConnection(String identifier)
identifier
- The identifier of the Connection to remove.Copyright © 2016. All rights reserved.