commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ori (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DBCP-364) BasicDataSourceFactory#createDataSource return signature should be BasicDataSourceFactory so that caller can invoke methods not declared in DataSource (e.g., close())
Date Wed, 24 Aug 2011 21:24:29 GMT

     [ https://issues.apache.org/jira/browse/DBCP-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

ori updated DBCP-364:
---------------------

    Priority: Trivial  (was: Major)

> BasicDataSourceFactory#createDataSource return signature should be BasicDataSourceFactory
so that caller can invoke methods not declared in DataSource (e.g., close())
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DBCP-364
>                 URL: https://issues.apache.org/jira/browse/DBCP-364
>             Project: Commons Dbcp
>          Issue Type: Improvement
>            Reporter: ori
>            Priority: Trivial
>
> BasicDataSourceFactory#createDataSource currently returns a DataSource instance.
> It should a return type of BasicDataSourceFactory. Otherwise the caller has to cast it
to invoke close (and other methods specific to the implementation).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message