[JBoss JIRA] Created: (DNA-191) Move sequencer, connector, and MIME type detector projects into an "extensions" folder (under trunk)
by Randall Hauch (JIRA)
Move sequencer, connector, and MIME type detector projects into an "extensions" folder (under trunk)
----------------------------------------------------------------------------------------------------
Key: DNA-191
URL: https://jira.jboss.org/jira/browse/DNA-191
Project: DNA
Issue Type: Task
Components: Connectors, Maven Classloader, Sequencers
Reporter: Randall Hauch
Assignee: Randall Hauch
Fix For: 0.2
DNA 0.1 introduced the concept of a sequencer, and we created a "sequencers" folder (under trunk) where we've been putting the projects that provide sequencer implementations. With DNA 0.2, we've also introduced the concept of a connector and - not surprisingly - placed all of the connector implementations in projects under a "connectors" folder (under trunk). Recently we introduced a third kind of extension point: the MIME type detector. We currently have only one implementation, but there certainly is the possibility that we'll have more. And really, the "dna-maven-classloader" is another type of extension.
But three different types of "extensions" doth make a pattern, and I wouldn't be surprised if we have more. Rather than have different folders under trunk for these different types of extensions, I'd like to make a single "extensions" folder (under trunk) and move all sequencer, connector, MIME type detector, and Maven class loader projects into that one folder. The project naming convention helps keep things clearly identified, all of these extensions really are optional (easier to describe in the documentation), we'll simplify the directory organization, and it will make it easier if any extension project wants to provide more than one type of extension (say, a detector AND a sequencer).
Pinging the dna-dev@ list to see when might be a good time to schedule this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[JBoss JIRA] Created: (DNA-192) Clean up the repository connector SPI
by Randall Hauch (JIRA)
Clean up the repository connector SPI
-------------------------------------
Key: DNA-192
URL: https://jira.jboss.org/jira/browse/DNA-192
Project: DNA
Issue Type: Task
Components: Connectors, SPI
Affects Versions: 0.2
Reporter: Randall Hauch
Fix For: 0.2
The current SPI is somewhat confusing, especially the distinction between RepositoryConnectionFactory and RepositorySource, and what the meaning of the RepositoryConnectionFactories interface is. The original idea was to pattern after JDBC DataSource, but a number of things are not handled well in DataSource (like connection pooling, which is done above the sources). Plus, the current design extracted interfaces when there was similar behavior/methods rather than designing the interfaces to be easily understood and used, and this resulted in some confusing names and concepts that overlapped or were too generic.
There should be a RepositorySource interface that defines all of the methods: getName(), getConnection(), and the management methods like shutdown(), shutdownNow(), isShutdown(), isTerminated(), awaitTermination(), etc. Also, if a RepositorySource would benefit from pooling connections, it should implement the pooling and can include any pooling parameters in the source's JavaBean properties. This means that no pooling is ever done above the RepositorySource, and that the RepositorySource bean properties fully specify and control the behavior of the source.
To make it easier to implement RepositorySource with pooling, the RepositoryConnectionPool class should be kept but should not share any interfaces, and an AbstractRepositorySource implement most of the RepositorySource functionality by delegating to a pool that it owns and manages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months