[Cherbot-commit] SF.net SVN: cherbot:[145] trunk/src/prj/net/sf/cherbot/connection/ ConnectionProvi
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2008-12-14 20:16:42
|
Revision: 145
http://cherbot.svn.sourceforge.net/cherbot/?rev=145&view=rev
Author: christianhujer
Date: 2008-12-14 20:16:36 +0000 (Sun, 14 Dec 2008)
Log Message:
-----------
Fixed checkstyle issues.
Modified Paths:
--------------
trunk/src/prj/net/sf/cherbot/connection/ConnectionProvider.java
Modified: trunk/src/prj/net/sf/cherbot/connection/ConnectionProvider.java
===================================================================
--- trunk/src/prj/net/sf/cherbot/connection/ConnectionProvider.java 2008-12-14 20:06:18 UTC (rev 144)
+++ trunk/src/prj/net/sf/cherbot/connection/ConnectionProvider.java 2008-12-14 20:16:36 UTC (rev 145)
@@ -6,12 +6,19 @@
/** Provider for connections.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
*/
-public class ConnectionProvider {
+public final class ConnectionProvider {
+ /** The ServiceLoader for getting {@link ConnectionFactory ConnectionFactories}. */
private static final ServiceLoader<ConnectionFactory> connectionFactories = ServiceLoader.load(ConnectionFactory.class);
+ /** Utility class - do not instanciate. */
+ private ConnectionProvider() {
+ }
+
/** Gets a Connection instance for the specified connection type name.
* @param connectionTypeName Name of the connection type for which to get a Connection.
+ * @return Connection for the specified <code>connectionTypeName</code>.
+ * @throws UnknownConnectionTypeException in case <code>connectionTypeName</code> is not supported.
*/
public static Connection getConnection(@NotNull final String connectionTypeName) throws UnknownConnectionTypeException {
for (final ConnectionFactory factory : connectionFactories) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|